summaryrefslogtreecommitdiff
path: root/examples/python/dbus
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-02-02 11:34:55 +0100
committerThomas Haller <thaller@redhat.com>2018-02-07 13:32:04 +0100
commit28da0154fcf005a8391a540f2c5a5055ca1da33f (patch)
tree59453628ab48acd4d8aee63c67ab3e60c3ba3626 /examples/python/dbus
parente4839accf5a5b470b9bf2287f0269ddc4ce0f91b (diff)
downloadNetworkManager-28da0154fcf005a8391a540f2c5a5055ca1da33f.tar.gz
all: drop trailing spaces
Diffstat (limited to 'examples/python/dbus')
-rwxr-xr-xexamples/python/dbus/list-devices.py2
-rwxr-xr-xexamples/python/dbus/update-secrets.py4
-rwxr-xr-xexamples/python/dbus/vpn.py2
3 files changed, 4 insertions, 4 deletions
diff --git a/examples/python/dbus/list-devices.py b/examples/python/dbus/list-devices.py
index 84ece38ab6..1afb5a4559 100755
--- a/examples/python/dbus/list-devices.py
+++ b/examples/python/dbus/list-devices.py
@@ -72,7 +72,7 @@ for d in devices:
print("============================")
print("Interface: %s" % props['Interface'])
- try:
+ try:
devtype = devtypes[props['DeviceType']]
except KeyError:
devtype = "Unknown"
diff --git a/examples/python/dbus/update-secrets.py b/examples/python/dbus/update-secrets.py
index 3a51446bd7..1fc7320926 100755
--- a/examples/python/dbus/update-secrets.py
+++ b/examples/python/dbus/update-secrets.py
@@ -22,7 +22,7 @@
# Update() method. The method replaces all previous settings with new ones
# including possible secrets.
# So, we get all settings using GetSettings() and then find out what secrets
-# are associated with the connection using GetSecrets(), ask for new secret
+# are associated with the connection using GetSecrets(), ask for new secret
# values, and add them to the settings that we pass to Update().
#
@@ -104,7 +104,7 @@ con = find_connection(sys.argv[1])
print("Connection found: " + con_path)
if con:
- # Obtain new secrets and put then into connection dict
+ # Obtain new secrets and put then into connection dict
change_secrets(con_path, con)
# Change the connection with Update()
diff --git a/examples/python/dbus/vpn.py b/examples/python/dbus/vpn.py
index ceaf6b9740..a21b82ff30 100755
--- a/examples/python/dbus/vpn.py
+++ b/examples/python/dbus/vpn.py
@@ -114,7 +114,7 @@ def activate_connection(connection_path, device_path):
iface = dbus.Interface(proxy, dbus_interface='org.freedesktop.NetworkManager')
iface.ActivateConnection('org.freedesktop.NetworkManager',
connection_path,
- device_path,
+ device_path,
"/",
reply_handler=reply_handler,
error_handler=error_handler)