From 7b0bb706e4c898ca47e11311b4337ea8f99d59a8 Mon Sep 17 00:00:00 2001 From: Jiri Moskovcak Date: Tue, 6 Oct 2009 15:13:40 +0200 Subject: small code fixes, no logic changes - has_key has been deprecated, so I removed it to avoid deprecation warning --- src/Gui/SettingsDialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Gui/SettingsDialog.py b/src/Gui/SettingsDialog.py index 596a5f9..b3af501 100644 --- a/src/Gui/SettingsDialog.py +++ b/src/Gui/SettingsDialog.py @@ -92,7 +92,7 @@ class SettingsDialog: # hydrate common common = self.settings["Common"] # ensure that all expected keys exist: - if not common.has_key("OpenGPGCheck"): + if "OpenGPGCheck" not in common: common["OpenGPGCheck"] = "no" # check unsigned pkgs too ## gpgcheck self.builder.get_object("cbOpenGPGCheck").set_active(common["OpenGPGCheck"] == 'yes') @@ -115,7 +115,7 @@ class SettingsDialog: AnalyzerActionsAndReporters = self.settings["AnalyzerActionsAndReporters"] for analplugin in self.pluginlist.getAnalyzerPlugins(): it = self.analyzerPluginsListStore.append([analplugin.getName(), analplugin]) - if AnalyzerActionsAndReporters.has_key(analplugin.getName()): + if analplugin.getName() in AnalyzerActionsAndReporters: action = (AnalyzerActionsAndReporters[analplugin.getName()], it) self.add_AnalyzerAction(action) -- cgit