Format python files.
I used yapf to apply to Google style but I had to install with pip and
invoke the library as a script so not suitable for integration yet.
Change-Id: I8c3d9c334bf1766f0fff7217270c148a3d1d7662
diff --git a/build/image/convert_to_binary.py b/build/image/convert_to_binary.py
index bf50a8e..2935ec8 100644
--- a/build/image/convert_to_binary.py
+++ b/build/image/convert_to_binary.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
-
"""Convert a file to binary format.
Calls objcopy to convert a file into raw binary format.
@@ -9,19 +8,19 @@
import subprocess
import sys
+
def Main():
- parser = argparse.ArgumentParser()
- parser.add_argument("--tool_prefix", required=True)
- parser.add_argument("--input", required=True)
- parser.add_argument("--output", required=True)
- args = parser.parse_args()
- subprocess.check_call([
- "{}objcopy".format(args.tool_prefix),
- "-O",
- "binary",
- args.input,
- args.output])
- return 0
+ parser = argparse.ArgumentParser()
+ parser.add_argument("--tool_prefix", required=True)
+ parser.add_argument("--input", required=True)
+ parser.add_argument("--output", required=True)
+ args = parser.parse_args()
+ subprocess.check_call([
+ "{}objcopy".format(args.tool_prefix), "-O", "binary", args.input,
+ args.output
+ ])
+ return 0
+
if __name__ == "__main__":
- sys.exit(Main())
+ sys.exit(Main())