mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-25 08:02:38 +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.Boolean : bool,
|
||||||
dbus.ByteArray : str,
|
dbus.ByteArray : str,
|
||||||
dbus.ObjectPath : str
|
dbus.ObjectPath : str
|
||||||
}
|
}
|
||||||
|
|
||||||
def dbus2py(d):
|
def dbus2py(d):
|
||||||
t = type(d)
|
t = type(d)
|
||||||
@ -39,8 +39,7 @@ def pretty(d):
|
|||||||
|
|
||||||
if t in (dict, tuple, list) and len(d) > 0:
|
if t in (dict, tuple, list) and len(d) > 0:
|
||||||
if t is dict:
|
if t is dict:
|
||||||
d = ", ".join(["%s = %s" % (k, pretty(v))
|
d = ", ".join(["%s = %s" % (k, pretty(v)) for k, v in d.items()])
|
||||||
for k, v in d.items()])
|
|
||||||
return "{ %s }" % d
|
return "{ %s }" % d
|
||||||
|
|
||||||
d = " ".join([pretty(e) for e in d])
|
d = " ".join([pretty(e) for e in d])
|
||||||
|
Loading…
Reference in New Issue
Block a user