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
@@ -2,6 +2,6 @@
name = Sample
activity_version = 1
bundle_id = org.sugarlabs.Sample
exec = sugar-activity activity.SampleActivity
exec = sugar-activity3 activity.SampleActivity
icon = activity-sample
license = GPLv2+
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
from sugar3.activity import bundlebuilder
+1
View File
@@ -59,6 +59,7 @@ def timeout_cb():
return False
return True
GLib.timeout_add(50, timeout_cb)
if __name__ == '__main__':
+1 -1
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python2
#!/usr/bin/env python3
# Copyright (C) 2006, Red Hat, Inc.
# Copyright (C) 2007, One Laptop Per Child
+2 -1
View File
@@ -23,7 +23,7 @@ from sugar3.test import uitree
class TestUITree(unittest.TestCase):
def test_tree(self):
process = subprocess.Popen(["python", __file__, "show_window1"])
process = subprocess.Popen(["python3", __file__, "show_window1"])
try:
root = uitree.get_root()
@@ -49,5 +49,6 @@ def show_window1():
Gtk.main()
if __name__ == '__main__':
globals()[sys.argv[1]]()