about summary refs log tree commit diff
path: root/examples/python/gi/get-active-connections.py
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-06-28 18:58:14 +0200
committerMichael Biebl <biebl@debian.org>2020-06-28 18:58:14 +0200
commita54ac63bbf9b2c71026ac9028a8ffaf186cf3c82 (patch)
tree6a32883bd916c4096357b35298beff6db8bcd0b5 /examples/python/gi/get-active-connections.py
parent45e8e1149027529194982212c804c0468aa01d98 (diff)
New upstream version 1.25.90 upstream/1.25.90
Diffstat (limited to 'examples/python/gi/get-active-connections.py')
-rwxr-xr-xexamples/python/gi/get-active-connections.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/examples/python/gi/get-active-connections.py b/examples/python/gi/get-active-connections.py
index 072f245a..c2f261ab 100755
--- a/examples/python/gi/get-active-connections.py
+++ b/examples/python/gi/get-active-connections.py
@@ -7,8 +7,9 @@
 # This example lists currently active connections
 
 import gi
-gi.require_version('NM', '1.0')
-from gi.repository import GLib, NM
+
+gi.require_version("NM", "1.0")
+from gi.repository import NM
 
 if __name__ == "__main__":
     client = NM.Client.new(None)
@@ -16,6 +17,4 @@ if __name__ == "__main__":
     for ac in acons:
         print("%s (%s) - %s" % (ac.get_id(), ac.get_uuid(), ac.get_connection_type()))
     if len(acons) == 0:
-       print("No active connections")
-
-
+        print("No active connections")