From ded203f7c9d3882c9055a25b4baa2908ac764fe6 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Thu, 20 Oct 2011 09:42:05 -0700 Subject: [PATCH] Bytes are already distinct from text, so typed=True isn't necessary. --- Lib/fnmatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py index f446769b9f6..3df20d8a14a 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')