diff options
author | koljonen <koljonen@outlook.com> | 2016-06-02 00:27:05 +0200 |
---|---|---|
committer | koljonen <koljonen@outlook.com> | 2016-06-02 00:41:14 +0200 |
commit | 1626f28b69caf2bf42d06ad42818206e8a5bc5ea (patch) | |
tree | 32bf89b0493098df4c1d288dff4623312a1cc3c7 /pgcli/completion_refresher.py | |
parent | 740085dd23d70b11d6ac6c0372ec2885f7b87a24 (diff) |
Pass around a settings dict instead of the config object
Diffstat (limited to 'pgcli/completion_refresher.py')
-rw-r--r-- | pgcli/completion_refresher.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pgcli/completion_refresher.py b/pgcli/completion_refresher.py index 54df2b2c..2cc3a797 100644 --- a/pgcli/completion_refresher.py +++ b/pgcli/completion_refresher.py @@ -17,7 +17,7 @@ class CompletionRefresher(object): self._restart_refresh = threading.Event() def refresh(self, executor, special, callbacks, history=None, - config=None): + settings=None): """ Creates a PGCompleter object and populates it with the relevant completion suggestions in a background thread. @@ -35,7 +35,7 @@ class CompletionRefresher(object): else: self._completer_thread = threading.Thread( target=self._bg_refresh, - args=(executor, special, callbacks, history, config), + args=(executor, special, callbacks, history, settings), name='completion_refresh') self._completer_thread.setDaemon(True) self._completer_thread.start() @@ -46,9 +46,9 @@ class CompletionRefresher(object): return self._completer_thread and self._completer_thread.is_alive() def _bg_refresh(self, pgexecute, special, callbacks, history=None, - config=None): + settings=None): completer = PGCompleter(smart_completion=True, pgspecial=special, - config=config) + settings=settings) # Create a new pgexecute method to popoulate the completions. e = pgexecute |