projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f63c0
)
Fix BytesWarnings in fnmatch
author
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 8 Nov 2011 17:39:15 +0000
(18:39 +0100)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Tue, 8 Nov 2011 17:39:15 +0000
(18:39 +0100)
Lib/fnmatch.py
patch
|
blob
|
history
diff --git
a/Lib/fnmatch.py
b/Lib/fnmatch.py
index 3df20d8a14adad2d99a5f5c9911f362f93269115..f446769b9f6661129798917ceb7b184cc2668738 100644
(file)
--- a/
Lib/fnmatch.py
+++ b/
Lib/fnmatch.py
@@
-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')