summaryrefslogtreecommitdiffstats
path: root/Lib/fnmatch.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-02-17 09:33:37 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-02-17 09:33:37 (GMT)
commitd0dbb20f5fcd5829f4bdc194d970d9e4d80e92bc (patch)
tree7912db2e919fa3433d44ba5b500bb661d1701207 /Lib/fnmatch.py
parent5b49962f7e38a3c02db583a306fb717ae2b2b3c5 (diff)
downloadcpython-d0dbb20f5fcd5829f4bdc194d970d9e4d80e92bc.zip
cpython-d0dbb20f5fcd5829f4bdc194d970d9e4d80e92bc.tar.gz
cpython-d0dbb20f5fcd5829f4bdc194d970d9e4d80e92bc.tar.bz2
Set cache sizes to a power-of-two
Diffstat (limited to 'Lib/fnmatch.py')
-rw-r--r--Lib/fnmatch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fnmatch.py b/Lib/fnmatch.py
index f446769..6330b0c 100644
--- 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, typed=True)
+@functools.lru_cache(maxsize=256, typed=True)
def _compile_pattern(pat):
if isinstance(pat, bytes):
pat_str = str(pat, 'ISO-8859-1')