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:
parent
f77d363840
commit
e14045442a
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user