[Python-checkins] cpython: Fix BytesWarnings in fnmatch
antoine.pitrou
python-checkins at python.org
Tue Nov 8 18:43:53 CET 2011
http://hg.python.org/cpython/rev/9cec4a4797b2
changeset: 73459:9cec4a4797b2
user: Antoine Pitrou <solipsis at pitrou.net>
date: Tue Nov 08 18:39:15 2011 +0100
summary:
Fix BytesWarnings in fnmatch
files:
Lib/fnmatch.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py
--- a/Lib/fnmatch.py
+++ b/Lib/fnmatch.py
@@ -35,7 +35,7 @@
pat = os.path.normcase(pat)
return fnmatchcase(name, pat)
- at functools.lru_cache(maxsize=250)
+ at functools.lru_cache(maxsize=250, typed=True)
def _compile_pattern(pat):
if isinstance(pat, bytes):
pat_str = str(pat, 'ISO-8859-1')
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list