Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e1568 commit d72ea60Copy full SHA for d72ea60
1 file changed
Lib/linecache.py
@@ -71,10 +71,10 @@ def checkcache(filename=None):
71
try:
72
stat = os.stat(fullname)
73
except OSError:
74
- del cache[filename]
+ cache.pop(filename, None)
75
continue
76
if size != stat.st_size or mtime != stat.st_mtime:
77
78
79
80
def updatecache(filename, module_globals=None):
@@ -84,7 +84,7 @@ def updatecache(filename, module_globals=None):
84
85
if filename in cache:
86
if len(cache[filename]) != 1:
87
88
if not filename or (filename.startswith('<') and filename.endswith('>')):
89
return []
90
0 commit comments