[Reportbug-commits] [reportbug] 15/32: port reportbug.ui.__init__ to py3k
Sandro Tosi
morph at moszumanska.debian.org
Thu Dec 1 01:36:52 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit 340128ba97f72cd78d1c1636c2a52fe097c2888f
Author: Sandro Tosi <morph at debian.org>
Date: Sun Nov 27 19:02:27 2016 -0500
port reportbug.ui.__init__ to py3k
---
reportbug/ui/__init__.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/reportbug/ui/__init__.py b/reportbug/ui/__init__.py
index f3c2c97..bee3834 100644
--- a/reportbug/ui/__init__.py
+++ b/reportbug/ui/__init__.py
@@ -34,7 +34,7 @@ AVAILABLE_UIS = {}
# List of already loaded ui, we can give back to requestors
__LOADED_UIS = {}
-for uis in UIS.keys():
+for uis in list(UIS.keys()):
try:
# let's try to import the ui...
ui_module = __import__('reportbug.ui', fromlist=[uis + '_ui'])
@@ -52,8 +52,8 @@ def getUI(ui):
"""Returns the requested UI, or default to text if not available"""
if ui in __LOADED_UIS:
- print "loading %s" % ui
+ print("loading %s" % ui)
return __LOADED_UIS[ui]
else:
- print "defaulting to text ui"
+ print("defaulting to text ui")
return __LOADED_UIS['text']
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list