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>2015-01-22 00:29:53 +0100
committerMichael Biebl <biebl@debian.org>2015-01-22 00:29:53 +0100
commit4d939c60d4ac257a2977871baf3b8b3671b5a4f7 (patch)
tree318c08dea542d7865422af76e2d36a9559340cd3 /examples/python/gi/get-active-connections.py
parentbb9eef75b2aaaab741e2b99911c8be3db6d1bc0b (diff)
parent2c032d8f1c6292c1338a615e6ec40252889ba85c (diff)
Merge tag 'upstream/1.0.0' into experimental
Upstream version 1.0.0
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())