diff options
| author | Rémi Verschelde | 2016-11-02 22:29:36 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-11-02 22:29:36 +0100 |
| commit | a7389217f8170dde67fa6bb50c1046ae4a5a9e5a (patch) | |
| tree | 9038a02fd751230f58d90063b399d71a125f5f6c /tools/scripts/file-hex-array.py | |
| parent | e259bf8bbb00c5555675892295ce50aa32695737 (diff) | |
| download | godot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.tar.gz godot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.tar.zst godot-a7389217f8170dde67fa6bb50c1046ae4a5a9e5a.zip | |
style: Fix PEP8 blank lines issues in Python files
Done with `autopep8 --select=E3,W3`, fixes:
- E301 - Add missing blank line.
- E302 - Add missing 2 blank lines.
- E303 - Remove extra blank lines.
- E304 - Remove blank line following function decorator.
- E309 - Add missing blank line.
- W391 - Remove trailing blank lines.
Diffstat (limited to 'tools/scripts/file-hex-array.py')
| -rwxr-xr-x | tools/scripts/file-hex-array.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/scripts/file-hex-array.py b/tools/scripts/file-hex-array.py index 8b7c3edd7..da95c9505 100755 --- a/tools/scripts/file-hex-array.py +++ b/tools/scripts/file-hex-array.py @@ -2,6 +2,7 @@ import binascii import os.path import sys + def tof(filepath): with open(filepath, 'r') as f: content = f.read() @@ -15,6 +16,7 @@ def tof(filepath): print(os.path.basename(filepath) + ".file created.") exit(0) + def toa(filepath): with open(filepath, 'rb') as f: content = f.read() @@ -28,6 +30,7 @@ def toa(filepath): print(os.path.basename(filepath) + ".array created.") exit(0) + def usage(): print("========================================================\n\ #\n\ |
