about summary refs log tree commit diff
path: root/examples/python/dbus/disconnect-device.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/dbus/disconnect-device.py')
-rwxr-xr-xexamples/python/dbus/disconnect-device.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/python/dbus/disconnect-device.py b/examples/python/dbus/disconnect-device.py
index 2387daf6..1b257025 100755
--- a/examples/python/dbus/disconnect-device.py
+++ b/examples/python/dbus/disconnect-device.py
@@ -16,7 +16,9 @@ if len(sys.argv) != 2:
 bus = dbus.SystemBus()
 
 # Get a proxy for the base NetworkManager object
-proxy = bus.get_object("org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager")
+proxy = bus.get_object(
+    "org.freedesktop.NetworkManager", "/org/freedesktop/NetworkManager"
+)
 manager = dbus.Interface(proxy, "org.freedesktop.NetworkManager")
 
 dpath = None
@@ -45,4 +47,3 @@ if state <= 3:
 
 # Tell NM to disconnect it
 dev_iface.Disconnect()
-