diff options
| author | Michael Biebl <biebl@debian.org> | 2018-04-23 18:00:21 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-04-23 18:00:21 +0200 |
| commit | f60117b41d5433be1b4a96d82cd11d0c3dce9b63 (patch) | |
| tree | 2dd55c4ab0fdcbe9cddb26adb4a554b1a45c73c8 /examples/python/dbus/nm-state.py | |
| parent | 7e9ff09fcb2366b383b7ebbec80d2f6fff117290 (diff) | |
New upstream version 1.11.3 upstream/1.11.3
Diffstat (limited to 'examples/python/dbus/nm-state.py')
| -rwxr-xr-x | examples/python/dbus/nm-state.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/python/dbus/nm-state.py b/examples/python/dbus/nm-state.py index 176090f7..68979efa 100755 --- a/examples/python/dbus/nm-state.py +++ b/examples/python/dbus/nm-state.py @@ -69,9 +69,9 @@ for d in devices: # and print them out if state == 100 : # activated - print "Device %s is activated" % name + print("Device %s is activated" % name) else: - print "Device %s is not activated (state=%s)" % (name, device_states[state]) + print("Device %s is not activated (state=%s)" % (name, device_states[state])) # Get active connection state @@ -91,4 +91,4 @@ for a in active: con_details = con_iface.GetSettings() con_name = con_details['connection']['id'] - print "Connection '%s' is %s" % (con_name, connectivity_states[state].lower()) + print("Connection '%s' is %s" % (con_name, connectivity_states[state].lower())) |