3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-24 23:42:42 +01:00

test: Use python3 coding style in monitor-iwd

This commit is contained in:
Denis Kenzior 2016-09-13 21:38:34 -05:00
parent f77d363840
commit e14045442a

View File

@ -17,7 +17,7 @@ _dbus2py = {
dbus.Boolean : bool,
dbus.ByteArray : str,
dbus.ObjectPath : str
}
}
def dbus2py(d):
t = type(d)
@ -39,8 +39,7 @@ def pretty(d):
if t in (dict, tuple, list) and len(d) > 0:
if t is dict:
d = ", ".join(["%s = %s" % (k, pretty(v))
for k, v in d.items()])
d = ", ".join(["%s = %s" % (k, pretty(v)) for k, v in d.items()])
return "{ %s }" % d
d = " ".join([pretty(e) for e in d])