File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 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):
7878
7979
8080def 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-
8781 """Update a cache entry and return its list of lines.
8882 If something's wrong, print a message, discard the cache entry,
8983 and return an empty list."""
9084
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
9190 import tokenize
9291
9392 if filename in cache :
You can’t perform that action at this time.
0 commit comments