Kaydet (Commit) 682ca1e6 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Fix BytesWarnings in fnmatch

üst a8f63c02
......@@ -35,7 +35,7 @@ def fnmatch(name, pat):
pat = os.path.normcase(pat)
return fnmatchcase(name, pat)
@functools.lru_cache(maxsize=250)
@functools.lru_cache(maxsize=250, typed=True)
def _compile_pattern(pat):
if isinstance(pat, bytes):
pat_str = str(pat, 'ISO-8859-1')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment