Test whether FILENAME matches PATTERN, including case. This is a version of fnmatch() which doesn't case-normalize its arguments.
(name, pat)
| 62 | return result |
| 63 | |
| 64 | def fnmatchcase(name, pat): |
| 65 | """Test whether FILENAME matches PATTERN, including case. |
| 66 | |
| 67 | This is a version of fnmatch() which doesn't case-normalize |
| 68 | its arguments. |
| 69 | """ |
| 70 | match = _compile_pattern(pat) |
| 71 | return match(name) is not None |
| 72 | |
| 73 | |
| 74 | def translate(pat): |
no test coverage detected