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
@@ -13,7 +13,8 @@
|
||||
#
|
||||
|
||||
import gi
|
||||
gi.require_version('NM', '1.0')
|
||||
|
||||
gi.require_version("NM", "1.0")
|
||||
from gi.repository import GLib, NM
|
||||
import sys, socket
|
||||
|
||||
@@ -25,7 +26,9 @@ if __name__ == "__main__":
|
||||
|
||||
method = sys.argv[2]
|
||||
if (method == "static" or method == "manual") and len(sys.argv) < 5:
|
||||
print("Usage: %s %s static address prefix [gateway]" % (sys.argv[0], sys.argv[1]))
|
||||
print(
|
||||
"Usage: %s %s static address prefix [gateway]" % (sys.argv[0], sys.argv[1])
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
uuid = sys.argv[1]
|
||||
@@ -69,4 +72,3 @@ if __name__ == "__main__":
|
||||
except Exception as e:
|
||||
sys.stderr.write("Error: %s\n" % e)
|
||||
break
|
||||
|
||||
|
Reference in New Issue
Block a user