We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac473c3 commit 146be27Copy full SHA for 146be27
bpython/test/test_repl.py
@@ -22,7 +22,7 @@
22
def setup_config(conf):
23
config_struct = config.Struct()
24
config.loadini(config_struct, TEST_CONFIG)
25
- if 'autocomplete_mode' in conf:
+ if conf is not None and 'autocomplete_mode' in conf:
26
config_struct.autocomplete_mode = conf['autocomplete_mode']
27
return config_struct
28
@@ -37,7 +37,7 @@ def reset(self):
37
38
39
class FakeRepl(repl.Repl):
40
- def __init__(self, conf={}):
+ def __init__(self, conf=None):
41
repl.Repl.__init__(self, repl.Interpreter(), setup_config(conf))
42
self.current_line = ""
43
self.cursor_offset = 0
0 commit comments