black: re-format
black and isort are enabled in the openbmc-build-scripts on Python files
to have a consistent formatting. Re-run the formatter on the whole
repository.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I944f1915ece753f72a3fa654902d445a9749d0f9
diff --git a/bin/event_notification_util.py b/bin/event_notification_util.py
index 380a120..9c52176 100755
--- a/bin/event_notification_util.py
+++ b/bin/event_notification_util.py
@@ -8,39 +8,41 @@
save_dir_path = sys.path.pop(0)
-modules = ['gen_arg', 'gen_print', 'gen_valid', 'event_notification']
+modules = ["gen_arg", "gen_print", "gen_valid", "event_notification"]
for module in modules:
exec("from " + module + " import *")
sys.path.insert(0, save_dir_path)
parser = argparse.ArgumentParser(
- usage='%(prog)s [OPTIONS]',
+ usage="%(prog)s [OPTIONS]",
description="%(prog)s will subscribe and receive event notifications when "
- + "properties change for the given dbus path.",
+ + "properties change for the given dbus path.",
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
- prefix_chars='-+')
+ prefix_chars="-+",
+)
parser.add_argument(
- '--host',
- default='',
- help='The host name or IP of the system to subscribe to.')
+ "--host",
+ default="",
+ help="The host name or IP of the system to subscribe to.",
+)
parser.add_argument(
- '--username',
- default='root',
- help='The username for the host system.')
+ "--username", default="root", help="The username for the host system."
+)
parser.add_argument(
- '--password',
- default='',
- help='The password for the host system.')
+ "--password", default="", help="The password for the host system."
+)
parser.add_argument(
- '--dbus_path',
- default='',
- help='The path to be monitored (e.g. "/xyz/openbmc_project/sensors").')
+ "--dbus_path",
+ default="",
+ help='The path to be monitored (e.g. "/xyz/openbmc_project/sensors").',
+)
parser.add_argument(
- '--enable_trace',
+ "--enable_trace",
choices=[0, 1],
default=0,
- help='Indicates that trace needs to be enabled.')
+ help="Indicates that trace needs to be enabled.",
+)
# Populate stock_list with options we want.