diff options
author | Olivier Tilloy <olivier.tilloy@canonical.com> | 2012-10-31 09:37:23 +0000 |
---|---|---|
committer | Tarmac <> | 2012-10-31 09:37:23 +0000 |
commit | 521a582066b78531ea7587e465d716b91e8266fb (patch) | |
tree | c755dc1a6471c7a7fd7dda31e2d6615143506b8a /tests | |
parent | e26fff2098e067e4c1dc8095af1447755a359873 (diff) | |
parent | 0ad7c832a92d7e3fd763d6c281338243e684865f (diff) | |
download | qmenumodel-521a582066b78531ea7587e465d716b91e8266fb.tar.gz qmenumodel-521a582066b78531ea7587e465d716b91e8266fb.tar.bz2 qmenumodel-521a582066b78531ea7587e465d716b91e8266fb.zip |
Migrate all the scripts to python3.
Approved by Renato Araujo Oliveira Filho, PS Jenkins bot.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/client/script_actiongrouptest.py | 2 | ||||
-rwxr-xr-x | tests/client/script_menuchangestest.py | 2 | ||||
-rwxr-xr-x | tests/client/script_modeltest.py | 8 | ||||
-rwxr-xr-x | tests/client/script_qmltest.py | 2 | ||||
-rwxr-xr-x | tests/client/script_servicetest.py | 2 | ||||
-rw-r--r-- | tests/script/menuscript.py | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/tests/client/script_actiongrouptest.py b/tests/client/script_actiongrouptest.py index 43409da..2af4841 100755 --- a/tests/client/script_actiongrouptest.py +++ b/tests/client/script_actiongrouptest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 import time from gi.repository import GLib diff --git a/tests/client/script_menuchangestest.py b/tests/client/script_menuchangestest.py index 67f2ee0..47e37bb 100755 --- a/tests/client/script_menuchangestest.py +++ b/tests/client/script_menuchangestest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 import time from menuscript import Script, ActionList, MENU_OBJECT_PATH diff --git a/tests/client/script_modeltest.py b/tests/client/script_modeltest.py index fdfbff4..72c294c 100755 --- a/tests/client/script_modeltest.py +++ b/tests/client/script_modeltest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import time @@ -9,7 +9,7 @@ al = ActionList(MENU_OBJECT_PATH) # create map pmap = {'int64' : GLib.Variant('x', -42), - 'string': GLib.Variant('s', u'42'), + 'string': GLib.Variant('s', '42'), 'double': GLib.Variant('d', 42.42)} al.appendItem("Menu0", "Menu0Act", None, None, {'x-boolean' : GLib.Variant('b', True), @@ -21,8 +21,8 @@ al.appendItem("Menu0", "Menu0Act", None, None, {'x-boolean' : GLib.Variant('b', 'x-int64' : GLib.Variant('x', -42), 'x-uint64' : GLib.Variant('t', 42), 'x-double' : GLib.Variant('d', 42.42), - 'x-string' : GLib.Variant('s', u'42'), - 'x-utf8' : GLib.Variant('s', u'dança'), + 'x-string' : GLib.Variant('s', '42'), + 'x-utf8' : GLib.Variant('s', 'dança'), 'x-map' : GLib.Variant('a{sv}', pmap), }) al.appendItem("Menu1", "Menu1Act") diff --git a/tests/client/script_qmltest.py b/tests/client/script_qmltest.py index 385256c..c93e221 100755 --- a/tests/client/script_qmltest.py +++ b/tests/client/script_qmltest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 import time from menuscript import Script, ActionList, MENU_OBJECT_PATH diff --git a/tests/client/script_servicetest.py b/tests/client/script_servicetest.py index 385256c..c93e221 100755 --- a/tests/client/script_servicetest.py +++ b/tests/client/script_servicetest.py @@ -1,4 +1,4 @@ -#!/usr/bin/python2.7 +#!/usr/bin/env python3 import time from menuscript import Script, ActionList, MENU_OBJECT_PATH diff --git a/tests/script/menuscript.py b/tests/script/menuscript.py index ba67560..60cb33b 100644 --- a/tests/script/menuscript.py +++ b/tests/script/menuscript.py @@ -114,7 +114,7 @@ class Action(object): # Remove action self._list._rootAction.remove(self._kargs['actionName']) else: - print "Remove menu item" + print("Remove menu item") def run(self): if self._action == 'append': |