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 1dc1521 commit 3a6a58bCopy full SHA for 3a6a58b
Lib/linecache.py
@@ -5,9 +5,6 @@
5
that name.
6
"""
7
8
-import sys
9
-import os
10
-
11
__all__ = ["getline", "clearcache", "checkcache", "lazycache"]
12
13
@@ -48,6 +45,7 @@ def getlines(filename, module_globals=None):
48
45
49
46
50
47
def checkcache(filename=None):
+ import os
51
"""Discard cache entries that are out of date.
52
(This is not checked upon each call!)"""
53
@@ -76,6 +74,9 @@ def checkcache(filename=None):
76
74
77
75
78
def updatecache(filename, module_globals=None):
+ import sys
79
+
80
"""Update a cache entry and return its list of lines.
81
If something's wrong, print a message, discard the cache entry,
82
and return an empty list."""
0 commit comments