summaryrefslogtreecommitdiffstats
path: root/src/Gui
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2009-10-06 15:13:40 +0200
committerJiri Moskovcak <jmoskovc@redhat.com>2009-10-06 15:13:40 +0200
commit7b0bb706e4c898ca47e11311b4337ea8f99d59a8 (patch)
treee33e59ac9a19493de625485cef4ae09d6a8bb285 /src/Gui
parentf150d983005202736dc8d78598decb4b99a6bbb9 (diff)
downloadabrt-7b0bb706e4c898ca47e11311b4337ea8f99d59a8.tar.gz
abrt-7b0bb706e4c898ca47e11311b4337ea8f99d59a8.tar.xz
abrt-7b0bb706e4c898ca47e11311b4337ea8f99d59a8.zip
small code fixes, no logic changes
- has_key has been deprecated, so I removed it to avoid deprecation warning
Diffstat (limited to 'src/Gui')
-rw-r--r--src/Gui/SettingsDialog.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Gui/SettingsDialog.py b/src/Gui/SettingsDialog.py
index 596a5f9b..b3af501f 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)