all: reformat python files with python black
Part of !537. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/537
This commit is contained in:

committed by
Thomas Haller

parent
b6febb0fd0
commit
be822b52e6
@@ -7,7 +7,8 @@
|
||||
# This example lists all devices, both real and placeholder ones
|
||||
|
||||
import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
|
||||
gi.require_version("NM", "1.0")
|
||||
from gi.repository import NM
|
||||
|
||||
if __name__ == "__main__":
|
||||
@@ -18,11 +19,18 @@ if __name__ == "__main__":
|
||||
print "------------"
|
||||
for d in devices:
|
||||
if d.is_real():
|
||||
print "%s (%s): %s" % (d.get_iface(), d.get_type_description(), d.get_state())
|
||||
print "%s (%s): %s" % (
|
||||
d.get_iface(),
|
||||
d.get_type_description(),
|
||||
d.get_state(),
|
||||
)
|
||||
|
||||
print "\nUnrealized/placeholder devices"
|
||||
print "------------------------------"
|
||||
for d in devices:
|
||||
if not d.is_real():
|
||||
print "%s (%s): %s" % (d.get_iface(), d.get_type_description(), d.get_state())
|
||||
|
||||
print "%s (%s): %s" % (
|
||||
d.get_iface(),
|
||||
d.get_type_description(),
|
||||
d.get_state(),
|
||||
)
|
||||
|
Reference in New Issue
Block a user