Trivial readability improvement (#3791)
This commit is contained in:
parent
5837d0418f
commit
db50ba7c72
|
@ -289,7 +289,7 @@ def _compile(pattern, flags):
|
||||||
if not (flags & DEBUG):
|
if not (flags & DEBUG):
|
||||||
if len(_cache) >= _MAXCACHE:
|
if len(_cache) >= _MAXCACHE:
|
||||||
try:
|
try:
|
||||||
_cache.popitem(False)
|
_cache.popitem(last=False)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass
|
pass
|
||||||
_cache[type(pattern), pattern, flags] = p
|
_cache[type(pattern), pattern, flags] = p
|
||||||
|
|
Loading…
Reference in New Issue