summary refs log tree commit diff
path: root/examples/python/gi/get-active-connections.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python/gi/get-active-connections.py')
-rwxr-xr-xexamples/python/gi/get-active-connections.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/gi/get-active-connections.py b/examples/python/gi/get-active-connections.py
index 13f0b031..55ba2d81 100755
--- a/examples/python/gi/get-active-connections.py
+++ b/examples/python/gi/get-active-connections.py
@@ -21,10 +21,10 @@
 
 # This example lists currently active connections
 
-from gi.repository import GLib, NMClient
+from gi.repository import GLib, NM
 
 if __name__ == "__main__":
-    client = NMClient.Client.new()
+    client = NM.Client.new(None)
     acons = client.get_active_connections()
     for ac in acons:
         print "%s (%s) - %s" % (ac.get_id(), ac.get_uuid(), ac.get_connection_type())