From db50ba7c72bd5f0617c50df3f1a1bb8b26955882 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 27 Sep 2017 11:12:30 -0400 Subject: [PATCH] Trivial readability improvement (#3791) --- Lib/re.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/re.py b/Lib/re.py index 657a4f6721..c194dba844 100644 --- a/Lib/re.py +++ b/Lib/re.py @@ -289,7 +289,7 @@ def _compile(pattern, flags): if not (flags & DEBUG): if len(_cache) >= _MAXCACHE: try: - _cache.popitem(False) + _cache.popitem(last=False) except KeyError: pass _cache[type(pattern), pattern, flags] = p -- 2.40.0