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 version 1.38
[platform/upstream/connman.git]
/
test
/
get-services
diff --git
a/test/get-services
b/test/get-services
index
0956480
..
2fa8b5b
100755
(executable)
--- a/
test/get-services
+++ b/
test/get-services
@@
-4,7
+4,7
@@
import dbus
def extract_values(values):
val = "{"
def extract_values(values):
val = "{"
- for key in
values.keys(
):
+ for key in
list(values.keys()
):
val += " " + key + "="
if key in ["Servers", "Excludes"]:
val += extract_list(values[key])
val += " " + key + "="
if key in ["Servers", "Excludes"]:
val += extract_list(values[key])
@@
-31,9
+31,9
@@
for entry in services:
path = entry[0]
properties = entry[1]
path = entry[0]
properties = entry[1]
- print
"[ %s ]" % (path
)
+ print
("[ %s ]" % (path)
)
- for key in
properties.keys(
):
+ for key in
list(properties.keys()
):
if key in ["IPv4", "IPv4.Configuration",
"IPv6", "IPv6.Configuration",
"Proxy", "Proxy.Configuration",
if key in ["IPv4", "IPv4.Configuration",
"IPv6", "IPv6.Configuration",
"Proxy", "Proxy.Configuration",
@@
-53,6
+53,6
@@
for entry in services:
val = int(properties[key])
else:
val = str(properties[key])
val = int(properties[key])
else:
val = str(properties[key])
- print
" %s = %s" % (key, val
)
+ print
(" %s = %s" % (key, val)
)
- print
+ print
()