summaryrefslogtreecommitdiff
path: root/portato/gui/windows/plugin.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-11 01:39:31 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-11 01:39:31 +0200
commitd9a7cd1da64da57bea05e5b234b9d9c6fea7f911 (patch)
tree65955560af923d5fc5a6517f8362903f840d13ee /portato/gui/windows/plugin.py
parent3c52ca58438e77d791a5cd5a2e3e0427445e93c2 (diff)
downloadportato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.tar.gz
portato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.tar.bz2
portato-d9a7cd1da64da57bea05e5b234b9d9c6fea7f911.zip
applied 2to3 and fixed the result
Diffstat (limited to 'portato/gui/windows/plugin.py')
-rw-r--r--portato/gui/windows/plugin.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/portato/gui/windows/plugin.py b/portato/gui/windows/plugin.py
index 89d38f5..14d38b1 100644
--- a/portato/gui/windows/plugin.py
+++ b/portato/gui/windows/plugin.py
@@ -10,7 +10,7 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from __future__ import absolute_import
+from future_builtins import map, filter, zip
import gtk
@@ -40,8 +40,8 @@ class PluginWindow (AbstractDialog):
self.inst = []
self.ninst = []
- self.buttons = map(self.tree.get_widget, ("disabledRB", "tempEnabledRB", "enabledRB", "tempDisabledRB"))
- map(lambda b: b.set_mode(False), self.buttons)
+ self.buttons = list(map(self.tree.get_widget, ("disabledRB", "tempEnabledRB", "enabledRB", "tempDisabledRB")))
+ list(map(lambda b: b.set_mode(False), self.buttons))
self.descrLabel = self.tree.get_widget("descrLabel")
self.authorLabel = self.tree.get_widget("authorLabel")
@@ -108,7 +108,7 @@ class PluginWindow (AbstractDialog):
debug("new changed plugins: %s => %d", plugin.name, state)
def cb_ok_clicked (self, btn):
- for plugin, val in self.changedPlugins.iteritems():
+ for plugin, val in self.changedPlugins.items():
plugin.status = val
self.close()
@@ -164,10 +164,10 @@ class PluginWindow (AbstractDialog):
try:
try:
self.queue.append(pkg, type = "install")
- except PackageNotFoundException, e:
+ except PackageNotFoundException as e:
if unmask_dialog(e[0]) == gtk.RESPONSE_YES:
self.queue.append(pkg, type = "install", unmask = True)
- except BlockedException, e:
+ except BlockedException as e:
blocked_dialog(e[0], e[1])
return True