| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ac473c3 commit 146be27
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,7 @@ | |||
| 22 | 22 | def setup_config(conf): | |
| 23 | 23 | config_struct = config.Struct() | |
| 24 | 24 | config.loadini(config_struct, TEST_CONFIG) | |
| 25 | - if 'autocomplete_mode' in conf: | ||
| 25 | + if conf is not None and 'autocomplete_mode' in conf: | ||
| 26 | 26 | config_struct.autocomplete_mode = conf['autocomplete_mode'] | |
| 27 | 27 | return config_struct | |
| 28 | 28 | ||
@@ -37,7 +37,7 @@ def reset(self): | |||
| 37 | 37 | ||
| 38 | 38 | ||
| 39 | 39 | class FakeRepl(repl.Repl): | |
| 40 | - def __init__(self, conf={}): | ||
| 40 | + def __init__(self, conf=None): | ||
| 41 | 41 | repl.Repl.__init__(self, repl.Interpreter(), setup_config(conf)) | |
| 42 | 42 | self.current_line = "" | |
| 43 | 43 | self.cursor_offset = 0 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments