diff options
author | Niraj Kumar Goit <niraj.g@samsung.com> | 2020-12-01 18:14:19 +0530 |
---|---|---|
committer | Niraj Kumar Goit <niraj.g@samsung.com> | 2021-01-04 05:50:23 +0000 |
commit | c647a4b6f1132684c9d8b8ad71ec38d81147b278 (patch) | |
tree | b346bee32f204af1f3b13cfacb2ad3caa9a9c484 /test/test-manager | |
parent | 04d1dbacf6aabbb44f16f6776496192964d460d8 (diff) | |
download | connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.tar.gz connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.tar.bz2 connman-c647a4b6f1132684c9d8b8ad71ec38d81147b278.zip |
Imported Upstream connman version 1.38
Change-Id: I9e650762f3b2b2a31945b66e044e67a77e3b4b12
Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
Diffstat (limited to 'test/test-manager')
-rwxr-xr-x | test/test-manager | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/test-manager b/test/test-manager index 2b4493c5..2bc53acc 100755 --- a/test/test-manager +++ b/test/test-manager @@ -4,7 +4,7 @@ import dbus def extract_values(values): val = "{" - for key in values.keys(): + for key in list(values.keys()): val += " " + key + "=" if key in ["PrefixLength"]: val += "%s" % (int(values[key])) @@ -30,23 +30,23 @@ manager = dbus.Interface(bus.get_object("net.connman", "/"), properties = manager.GetProperties() -for key in properties.keys(): +for key in list(properties.keys()): if key in ["OfflineMode", "SessionMode"]: - print "%s" % (key) + print("%s" % (key)) if properties[key] == dbus.Boolean(1): - print " true" + print(" true") else: - print " false" + print(" false") else: - print "%s" % (key) - print " %s" % (properties[key]) + print("%s" % (key)) + print(" %s" % (properties[key])) print ("Services") services = manager.GetServices() for (path, properties) in services: - print " %s" % (path) - for key in properties.keys(): + print(" %s" % (path)) + for key in list(properties.keys()): if key in ["Available", "Remember", "Default", "Favorite", "Immutable", "AutoConnect", "LoginRequired", @@ -73,14 +73,14 @@ for (path, properties) in services: else: val = str(properties[key]) - print " %s = %s" % (key, val) + print(" %s = %s" % (key, val)) print ("Technologies") technologies = manager.GetTechnologies() for (path, properties) in technologies: - print " %s" % (path) - for key in properties.keys(): + print(" %s" % (path)) + for key in list(properties.keys()): if key in ["Connected", "Powered", "Tethering"]: if properties[key] == dbus.Boolean(1): @@ -90,4 +90,4 @@ for (path, properties) in technologies: else: val = properties[key] - print " %s = %s" % (key, val) + print(" %s = %s" % (key, val)) |