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 /examples | |
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 'examples')
-rwxr-xr-x | examples/exportactiongroup.py | 8 | ||||
-rwxr-xr-x | examples/exportmenu.py | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/examples/exportactiongroup.py b/examples/exportactiongroup.py index f69416e..0f2d675 100755 --- a/examples/exportactiongroup.py +++ b/examples/exportactiongroup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ @@ -20,10 +20,10 @@ BUS_OBJECT_PATH = '/com/canonical/testactiongroup' def action_activated(action, data): name = action.get_name() if action.get_state_type() is None: - print 'stateless action activated: %s' % name + print('stateless action activated: %s' % name) else: - print 'stateful action activated: %s (current state: %s)' % - (name, action.get_state()) + print('stateful action activated: %s (current state: %s)' % + (name, action.get_state())) if __name__ == '__main__': diff --git a/examples/exportmenu.py b/examples/exportmenu.py index 831f995..70cc6f3 100755 --- a/examples/exportmenu.py +++ b/examples/exportmenu.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- encoding: utf-8 -*- """ |