From 307fe6b1099a024c81348a8ba0e666464ad9f201 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Mon, 30 Nov 2015 07:03:49 +0100 Subject: [PATCH] Avoid shadowing 'model'. --- qutebrowser/completion/models/instances.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qutebrowser/completion/models/instances.py b/qutebrowser/completion/models/instances.py index deda7e195..69048d42b 100644 --- a/qutebrowser/completion/models/instances.py +++ b/qutebrowser/completion/models/instances.py @@ -67,12 +67,12 @@ def _init_setting_completions(): _instances[usertypes.Completion.option] = {} _instances[usertypes.Completion.value] = {} for sectname in configdata.DATA: - model = configmodel.SettingOptionCompletionModel(sectname) - _instances[usertypes.Completion.option][sectname] = model + opt_model = configmodel.SettingOptionCompletionModel(sectname) + _instances[usertypes.Completion.option][sectname] = opt_model _instances[usertypes.Completion.value][sectname] = {} for opt in configdata.DATA[sectname]: - model = configmodel.SettingValueCompletionModel(sectname, opt) - _instances[usertypes.Completion.value][sectname][opt] = model + val_model = configmodel.SettingValueCompletionModel(sectname, opt) + _instances[usertypes.Completion.value][sectname][opt] = val_model @pyqtSlot()