commit | 682ca1e6e2546361a4cb117f522ca2886f35d572 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 08 18:39:15 2011 +0100 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Tue Nov 08 18:39:15 2011 +0100 |
tree | 28101937122d589ceff77faa5e5d0522e9d7df80 | |
parent | a8f63c02ef929799e80c5d2146c642e0d0056704 [diff] [blame] |
Fix BytesWarnings in fnmatch
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py index 3df20d8..f446769 100644 --- a/Lib/fnmatch.py +++ b/Lib/fnmatch.py
@@ -35,7 +35,7 @@ pat = os.path.normcase(pat) return fnmatchcase(name, pat) -@functools.lru_cache(maxsize=250) +@functools.lru_cache(maxsize=250, typed=True) def _compile_pattern(pat): if isinstance(pat, bytes): pat_str = str(pat, 'ISO-8859-1')