aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-30 12:59:37 +0100
committerOlivier Tilloy <olivier.tilloy@canonical.com>2012-10-30 12:59:37 +0100
commit209c95ea443041146229336379e66e659d72edae (patch)
treed0cd5dcb9e526090434917266000aad5122b80f3 /examples
parent4d47b26a31dc1c337b47ded055e5f6613972fc97 (diff)
downloadqmenumodel-209c95ea443041146229336379e66e659d72edae.tar.gz
qmenumodel-209c95ea443041146229336379e66e659d72edae.tar.bz2
qmenumodel-209c95ea443041146229336379e66e659d72edae.zip
Migrate all scripts to python3.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/exportactiongroup.py8
-rwxr-xr-xexamples/exportmenu.py2
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 -*-
"""