X Tutup
Skip to content

Commit 6a29a44

Browse files
committed
Move keywords import
1 parent 5809cae commit 6a29a44

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

bpython/autocomplete.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@
2424
import __builtin__
2525
import __main__
2626
import abc
27-
import rlcompleter
28-
import re
27+
import keyword
2928
import os
29+
import re
30+
import rlcompleter
31+
3032
from glob import glob
33+
3134
from bpython import inspection
3235
from bpython import importcompletion
3336
from bpython import line as lineparts
@@ -255,7 +258,6 @@ def matches(self, cursor_offset, line, locals_, **kwargs):
255258

256259
hash = {}
257260
n = len(text)
258-
import keyword
259261
for word in keyword.kwlist:
260262
if method_match(word, n, text):
261263
hash[word] = 1

0 commit comments

Comments
 (0)
X Tutup