[Python-checkins] cpython: Bytes are already distinct from text, so typed=True isn't necessary.
raymond.hettinger
python-checkins at python.org
Thu Oct 20 18:43:31 CEST 2011
http://hg.python.org/cpython/rev/5fa0cb61760d
changeset: 73025:5fa0cb61760d
parent: 73020:8645f8a567f9
user: Raymond Hettinger <python at rcn.com>
date: Thu Oct 20 09:42:05 2011 -0700
summary:
Bytes are already distinct from text, so typed=True isn't necessary.
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, typed=True)
+ at functools.lru_cache(maxsize=250)
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