Skip to content

Commit 7089323

Browse files
committed
move import to module scope
1 parent 1c3dd97 commit 7089323

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Lib/_pyrepl/fancycompleter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from _colorize import ANSIColors, get_colors
1010
import rlcompleter
1111
import types
12-
12+
import keyword
1313

1414
class DefaultConfig:
1515

@@ -88,7 +88,6 @@ def _callable_postfix(self, val, word):
8888
return word
8989

9090
def global_matches(self, text):
91-
import keyword
9291
names = rlcompleter.Completer.global_matches(self, text)
9392
prefix = commonprefix(names)
9493
if prefix and prefix != text:

0 commit comments

Comments
 (0)