File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,15 @@ def checkcache(filename=None):
78
78
79
79
80
80
def updatecache(filename, module_globals=None):
81
- # These imports are not at top level because linecache is in the critical
82
- # path of the interpreter startup and importing os and sys take a lot of time
83
- # and slow down the startup sequence.
84
- import os
85
- import sys
86
-
87
81
"""Update a cache entry and return its list of lines.
88
82
If something's wrong, print a message, discard the cache entry,
89
83
and return an empty list."""
90
84
85
+ # These imports are not at top level because linecache is in the critical
86
+ # path of the interpreter startup and importing os and sys take a lot of time
87
+ # and slows down the startup sequence.
88
+ import os
89
+ import sys
91
90
import tokenize
92
91
93
92
if filename in cache:
You can’t perform that action at this time.
0 commit comments