Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ded203f

Browse files
committed
Bytes are already distinct from text, so typed=True isn't necessary.
1 parent db84803 commit ded203f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/fnmatch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def fnmatch(name, pat):
3535
pat = os.path.normcase(pat)
3636
return fnmatchcase(name, pat)
3737

38-
@functools.lru_cache(maxsize=250, typed=True)
38+
@functools.lru_cache(maxsize=250)
3939
def _compile_pattern(pat):
4040
if isinstance(pat, bytes):
4141
pat_str = str(pat, 'ISO-8859-1')

0 commit comments

Comments
 (0)