diff options
author | Raymond Hettinger <python@rcn.com> | 2011-10-20 09:42:05 -0700 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-10-20 09:42:05 -0700 |
commit | c52a43d98a1727c640dd26e6835cdb45b49cd05e (patch) | |
tree | b693116ce16acf18c4f57eb1426d6d92b270cfee | |
parent | 3134fb3fe9f2d9d2a8d0ff98b8fb31ddd9e3a265 (diff) | |
download | cpython-c52a43d98a1727c640dd26e6835cdb45b49cd05e.tar.gz |
Bytes are already distinct from text, so typed=True isn't necessary.
-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 f446769b9f..3df20d8a14 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, typed=True) +@functools.lru_cache(maxsize=250) def _compile_pattern(pat): if isinstance(pat, bytes): pat_str = str(pat, 'ISO-8859-1') |