diff options
author | Raymond Hettinger <python@rcn.com> | 2011-10-20 16:42:05 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-10-20 16:42:05 (GMT) |
commit | ded203f7c9d3882c9055a25b4baa2908ac764fe6 (patch) | |
tree | c0d26c008a0394d9fbc42bfa396fb6e6ad0ca160 /Lib/fnmatch.py | |
parent | db848035627f7ead50e5dea0016da25e242fe724 (diff) | |
download | cpython-ded203f7c9d3882c9055a25b4baa2908ac764fe6.zip cpython-ded203f7c9d3882c9055a25b4baa2908ac764fe6.tar.gz cpython-ded203f7c9d3882c9055a25b4baa2908ac764fe6.tar.bz2 |
Bytes are already distinct from text, so typed=True isn't necessary.
Diffstat (limited to 'Lib/fnmatch.py')
-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 f446769..3df20d8 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') |