Port from Python 2 to six

Signed-off-by: James Cameron <quozl@laptop.org>
This commit is contained in:
Pro-Panda
2018-03-01 17:28:56 +05:30
committed by James Cameron
parent 6345da8e07
commit aa8a5e70c4
74 changed files with 623 additions and 700 deletions
+3 -3
View File
@@ -12,12 +12,12 @@ import common
def _scroll_start_cb(event, treeview, invoker):
print "Scroll starts"
print("Scroll starts")
invoker.detach()
def _scroll_end_cb(event, treeview, invoker):
print "Scroll ends"
print("Scroll ends")
invoker.attach_treeview(treeview)
@@ -30,7 +30,7 @@ data_dir = os.getenv('GTK_DATA_PREFIX', '/usr/')
iconlist = os.listdir(os.path.join(data_dir,
'share/icons/sugar/scalable/actions/'))
print "Displaying %s icons" % len(iconlist)
print("Displaying %s icons" % len(iconlist))
for icon in iconlist:
icon = os.path.basename(icon)
icon = icon[:icon.find('.')]