summaryrefslogtreecommitdiff
path: root/test/test-clock
diff options
context:
space:
mode:
authorDaniel Wagner <wagi@monom.org>2020-02-10 09:07:34 +0100
committerDaniel Wagner <wagi@monom.org>2020-02-10 09:12:58 +0100
commit55965561d3b6acb40777116869276c6e74563c42 (patch)
treee8b3593e1d92563c1d2e11ee8eb00e0368d0dd14 /test/test-clock
parent575190f39709a19bd913d44584b4bdcd34b3b593 (diff)
downloadconnman-55965561d3b6acb40777116869276c6e74563c42.tar.gz
test: Update all Python script to version 3
Python2 is EOL, it's time to update our test script to run with Python3. The conversion was done using 2to3 and most of the scripts will run with both versions. Since most of the transformation is about updating the print commands. Only a quick smoke test was done.
Diffstat (limited to 'test/test-clock')
-rwxr-xr-xtest/test-clock6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-clock b/test/test-clock
index e9b76fca..c086ffc6 100755
--- a/test/test-clock
+++ b/test/test-clock
@@ -9,11 +9,11 @@ clock = dbus.Interface(bus.get_object("net.connman", "/"),
properties = clock.GetProperties()
-for key in properties.keys():
+for key in list(properties.keys()):
if key in ["Timeservers"]:
list = ""
for val in properties[key]:
list = list + val + " "
- print "%s = [ %s]" % (key, list)
+ print("%s = [ %s]" % (key, list))
else:
- print "%s = %s" % (key, properties[key])
+ print("%s = %s" % (key, properties[key]))