Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Trivial readability improvement.
  • Loading branch information
Barry Warsaw committed Sep 27, 2017
commit fc459e3410ee0bf59fbd4423b80e574bf41a2896
2 changes: 1 addition & 1 deletion Lib/re.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down