diff options
| author | Rémi Verschelde | 2016-11-02 22:30:34 +0100 |
|---|---|---|
| committer | Rémi Verschelde | 2016-11-02 22:30:34 +0100 |
| commit | eaf803f71e19b1e1bf8fb4c8c36cf77d1ac064b3 (patch) | |
| tree | d1aaa0deade8f67d05544292091a3084f2858a65 /tools/scripts/file-hex-array.py | |
| parent | a7389217f8170dde67fa6bb50c1046ae4a5a9e5a (diff) | |
| download | godot-eaf803f71e19b1e1bf8fb4c8c36cf77d1ac064b3.tar.gz godot-eaf803f71e19b1e1bf8fb4c8c36cf77d1ac064b3.tar.zst godot-eaf803f71e19b1e1bf8fb4c8c36cf77d1ac064b3.zip | |
style: Various other PEP8 fixes in Python files
Done with `autopep8 --select=E7`, fixes:
- E701 - Put colon-separated compound statement on separate lines.
- E702 - Put semicolon-separated compound statement on separate lines.
- E703 - Put semicolon-separated compound statement on separate lines.
- E711 - Fix comparison with None.
- E712 - Fix (trivial case of) comparison with boolean.
- E713 - Fix (trivial case of) non-membership check.
- E721 - Fix various deprecated code (via lib2to3).
Diffstat (limited to 'tools/scripts/file-hex-array.py')
| -rwxr-xr-x | tools/scripts/file-hex-array.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/scripts/file-hex-array.py b/tools/scripts/file-hex-array.py index da95c9505..a6cdfe541 100755 --- a/tools/scripts/file-hex-array.py +++ b/tools/scripts/file-hex-array.py @@ -9,7 +9,8 @@ def tof(filepath): content = content.replace("0x", "") content = content.split(',') for i in range(len(content)): - if len(content[i]) == 1: content[i] = "0" + content[i] + if len(content[i]) == 1: + content[i] = "0" + content[i] content = "".join(content) with open(filepath + ".file", 'wb') as f: content = f.write(content.decode("hex")) |
