summary refs log tree commit diff
path: root/examples/python/gi/device-state-ip4config.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/device-state-ip4config.py
parentbb9eef75b2aaaab741e2b99911c8be3db6d1bc0b (diff)
parent2c032d8f1c6292c1338a615e6ec40252889ba85c (diff)
Merge tag 'upstream/1.0.0' into experimental
Upstream version 1.0.0
Diffstat (limited to 'examples/python/gi/device-state-ip4config.py')
-rwxr-xr-xexamples/python/gi/device-state-ip4config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/python/gi/device-state-ip4config.py b/examples/python/gi/device-state-ip4config.py
index be19b996..1a6f7dec 100755
--- a/examples/python/gi/device-state-ip4config.py
+++ b/examples/python/gi/device-state-ip4config.py
@@ -21,7 +21,7 @@
 #
 
 import sys
-from gi.repository import GLib, NetworkManager, NMClient
+from gi.repository import GLib, NM
 
 #
 #  This example shows how to get NMIP4Config from NMDevice after it is activated.
@@ -51,7 +51,7 @@ if __name__ == "__main__":
         sys.exit('Usage: %s <interface>' % sys.argv[0])
     dev_iface = sys.argv[1]
 
-    c = NMClient.Client.new()
+    c = NM.Client.new(None)
     dev = c.get_device_by_iface(dev_iface)
     if dev is None:
         sys.exit('Device \'%s\' not found' % dev_iface)