From: Barry Warsaw Date: Wed, 27 Sep 2017 15:12:30 +0000 (-0400) Subject: Trivial readability improvement (#3791) X-Git-Tag: v3.7.0a2~102 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db50ba7c72bd5f0617c50df3f1a1bb8b26955882;p=python Trivial readability improvement (#3791) --- 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