diff options
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 -*- """ |