mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Bytes are already distinct from text, so typed=True isn't necessary.
This commit is contained in:
parent
db84803562
commit
ded203f7c9
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue