]> granicus.if.org Git - python/commitdiff
Bytes are already distinct from text, so typed=True isn't necessary.
authorRaymond Hettinger <python@rcn.com>
Thu, 20 Oct 2011 16:42:05 +0000 (09:42 -0700)
committerRaymond Hettinger <python@rcn.com>
Thu, 20 Oct 2011 16:42:05 +0000 (09:42 -0700)
Lib/fnmatch.py

index f446769b9f6661129798917ceb7b184cc2668738..3df20d8a14adad2d99a5f5c9911f362f93269115 100644 (file)
@@ -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')