Skip to content

Commit

Permalink
Update Lib/linecache.py
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert authored Dec 4, 2024
1 parent b98e7ed commit ba0cc8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/linecache.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def checkcache(filename=None):
(This is not checked upon each call!)"""

if filename is None:
# get keys atomically
filenames = cache.copy().keys()
else:
filenames = [filename]
Expand Down

0 comments on commit ba0cc8d

Please sign in to comment.