Skip to content

Commit 508082a

Browse files
committed
Import consistency
1 parent a4aea3d commit 508082a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bpython/config.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010
from six.moves.configparser import ConfigParser
1111

1212
from bpython.keys import cli_key_dispatch as key_dispatch
13-
from bpython.autocomplete import SIMPLE as default_completion
14-
import bpython.autocomplete
13+
from bpython.autocomplete import SIMPLE as default_completion, ALL_MODES
1514

1615

1716
class Struct(object):
@@ -273,7 +272,7 @@ def get_key_no_doublebind(command):
273272
struct.hist_file = os.path.expanduser(struct.hist_file)
274273

275274
# verify completion mode
276-
if struct.autocomplete_mode not in bpython.autocomplete.ALL_MODES:
275+
if struct.autocomplete_mode not in ALL_MODES:
277276
struct.autocomplete_mode = default_completion
278277

279278
# set box drawing characters

0 commit comments

Comments
 (0)