Update test script to newer api.

Also remove an unused "import".
This commit is contained in:
Andrzej Zaborowski 2009-11-10 07:31:20 +01:00 committed by Denis Kenzior
parent 3187db9352
commit b68c673d45
2 changed files with 1 additions and 3 deletions

View File

@ -25,7 +25,7 @@ for path in properties["Modems"]:
properties = connmgr.GetProperties()
if (properties["PrimaryContexts"] == []):
path = connmgr.CreateContext()
path = connmgr.CreateContext("Example", "internet")
else:
path = properties["PrimaryContexts"][0]

View File

@ -1,7 +1,5 @@
#!/usr/bin/python
import gobject
import dbus
if __name__ == "__main__":