summaryrefslogtreecommitdiffstats
path: root/Lib/fnmatch.py
diff options
context:
space:
mode:
authorandrei kulakov <andrei.avk@gmail.com>2021-07-15 10:53:26 (GMT)
committerGitHub <noreply@github.com>2021-07-15 10:53:26 (GMT)
commitb39eea06d148887dd91a3612febafbddda760593 (patch)
treeb6fd78e7b77aa1cedb14ffe130ab955db0189912 /Lib/fnmatch.py
parent3527569f1cd0df697242b68a8a837f08904872fe (diff)
downloadcpython-b39eea06d148887dd91a3612febafbddda760593.zip
cpython-b39eea06d148887dd91a3612febafbddda760593.tar.gz
cpython-b39eea06d148887dd91a3612febafbddda760593.tar.bz2
bpo-42799: fnmatch module: bump up size of lru_cache for patterns (GH-27084)
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 7c52c23..239c749 100644
--- a/Lib/fnmatch.py
+++ b/Lib/fnmatch.py
@@ -41,7 +41,7 @@ def fnmatch(name, pat):
pat = os.path.normcase(pat)
return fnmatchcase(name, pat)
-@functools.lru_cache(maxsize=256, typed=True)
+@functools.lru_cache(maxsize=32768, typed=True)
def _compile_pattern(pat):
if isinstance(pat, bytes):
pat_str = str(pat, 'ISO-8859-1')