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-counter | |
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-counter')
-rwxr-xr-x | test/test-counter | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-counter b/test/test-counter index ce835802..c09aabc1 100755 --- a/test/test-counter +++ b/test/test-counter @@ -24,7 +24,7 @@ def make_bytes_readable(bytes): return '' def print_stats(stats): - keys = stats.keys() + keys = list(stats.keys()) keys.sort() for key in keys: @@ -36,7 +36,7 @@ def print_stats(stats): if hstr: str = "%s (%s)" % (str, hstr) - print str + print(str) class Counter(dbus.service.Object): @dbus.service.method("net.connman.Counter", @@ -48,13 +48,13 @@ class Counter(dbus.service.Object): @dbus.service.method("net.connman.Counter", in_signature='oa{sv}a{sv}', out_signature='') def Usage(self, path, home, roaming): - print "%s" % (path) + print("%s" % (path)) if len(home) > 0: - print " Home" + print(" Home") print_stats(home) if len(roaming) > 0: - print " Roaming" + print(" Roaming") print_stats(roaming) if __name__ == '__main__': |