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

Skip to content

Commit 682ca1e

Browse files
committed
Fix BytesWarnings in fnmatch
1 parent a8f63c0 commit 682ca1e

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

0 commit comments

Comments
 (0)