diff options
| author | Michael Biebl <biebl@debian.org> | 2018-06-04 00:07:45 +0200 |
|---|---|---|
| committer | Michael Biebl <biebl@debian.org> | 2018-06-04 00:07:45 +0200 |
| commit | 04bc9e1cd3544445d883ad29ea108c1645c8e7b7 (patch) | |
| tree | d10c354b1b980ca8a7b9e48ec9019e8ed88bde2b /examples/python/dbus/nm-state.py | |
| parent | ee9c73a923909e23a649407be77e25235d769e25 (diff) | |
New upstream version 1.11.4 upstream/1.11.4
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())) |