scripts: python: cleanup script and fix PEP8 issues
Ran scripts through flake8 and fixed issues.
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
diff --git a/scripts/gen_syscalls.py b/scripts/gen_syscalls.py
index 9588c9f..1e8d363 100755
--- a/scripts/gen_syscalls.py
+++ b/scripts/gen_syscalls.py
@@ -83,15 +83,16 @@
def parse_args():
global args
- parser = argparse.ArgumentParser(description = __doc__,
- formatter_class = argparse.RawDescriptionHelpFormatter)
+ parser = argparse.ArgumentParser(
+ description=__doc__,
+ formatter_class=argparse.RawDescriptionHelpFormatter)
parser.add_argument("-i", "--json-file", required=True,
- help="Read syscall information from json file")
+ help="Read syscall information from json file")
parser.add_argument("-d", "--syscall-dispatch", required=True,
- help="output C system call dispatch table file")
+ help="output C system call dispatch table file")
parser.add_argument("-o", "--base-output", required=True,
- help="Base output directory for syscall macro headers")
+ help="Base output directory for syscall macro headers")
args = parser.parse_args()
@@ -137,6 +138,6 @@
with open(out_fn, "w") as fp:
fp.write(header)
+
if __name__ == "__main__":
main()
-