diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-08 17:39:15 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-08 17:39:15 (GMT) |
commit | 682ca1e6e2546361a4cb117f522ca2886f35d572 (patch) | |
tree | 28101937122d589ceff77faa5e5d0522e9d7df80 | |
parent | a8f63c02ef929799e80c5d2146c642e0d0056704 (diff) | |
download | cpython-682ca1e6e2546361a4cb117f522ca2886f35d572.zip cpython-682ca1e6e2546361a4cb117f522ca2886f35d572.tar.gz cpython-682ca1e6e2546361a4cb117f522ca2886f35d572.tar.bz2 |
Fix BytesWarnings in fnmatch
-rw-r--r-- | Lib/fnmatch.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def fnmatch(name, pat): 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') |