Test whether FILENAME matches PATTERN, including case. This is a version of fnmatch() which doesn't case-normalize its arguments.
(name, pat)
| 83 | |
| 84 | |
| 85 | def fnmatchcase(name, pat): |
| 86 | """Test whether FILENAME matches PATTERN, including case. |
| 87 | |
| 88 | This is a version of fnmatch() which doesn't case-normalize |
| 89 | its arguments. |
| 90 | """ |
| 91 | match = _compile_pattern(pat) |
| 92 | return match(name) is not None |
| 93 | |
| 94 | |
| 95 | def translate(pat): |
no test coverage detected
searching dependent graphs…