projects
/
platform
/
upstream
/
connman.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream connman version 1.38
[platform/upstream/connman.git]
/
test
/
set-timeservers
diff --git
a/test/set-timeservers
b/test/set-timeservers
index
19cc938
..
55a1984
100755
(executable)
--- a/
test/set-timeservers
+++ b/
test/set-timeservers
@@
-4,7
+4,7
@@
import sys
import dbus
if (len(sys.argv) < 2):
import dbus
if (len(sys.argv) < 2):
- print
"Usage: %s <service> [timeserver*]" % (sys.argv[0]
)
+ print
("Usage: %s <service> [timeserver*]" % (sys.argv[0])
)
sys.exit(1)
bus = dbus.SystemBus()
sys.exit(1)
bus = dbus.SystemBus()
@@
-14,7
+14,7
@@
service = dbus.Interface(bus.get_object('net.connman', path),
properties = service.GetProperties()
properties = service.GetProperties()
-print
"Setting timeserver to %s" % (sys.argv[2:]
)
+print
("Setting timeserver to %s" % (sys.argv[2:])
)
service.SetProperty("Timeservers.Configuration",
dbus.Array(sys.argv[2:], signature=dbus.Signature('s')))
service.SetProperty("Timeservers.Configuration",
dbus.Array(sys.argv[2:], signature=dbus.Signature('s')))