Sean Vig
4bd90d79d0
Use with open(...) as ...: context managers
...
Instead of manually opening and closes file objects, use the context
manager that will properly handle opening and closing files for us, even
in the event of some error
2015-12-13 18:57:36 -06:00
Sean Vig
82c3230981
PEP8 and break up radio/util/tts.py
...
Break up tts.py so that each language configuration of system and custom
sounds is done in a separate file, also fixing PEP8 problems with
tts.py, mostly whitespace related
2015-12-13 18:55:03 -06:00
Sean Vig
5f698d2b17
PEP8 radio/util/translate.py
...
Remove unused imports, fix whitespace, fix undefined variable
2015-12-13 18:55:03 -06:00
Sean Vig
4bfcfd0fc8
PEP8 radio/util/taranisicons.py
...
Remove unused imports, fix whitespace, fix indentation
2015-12-13 18:55:02 -06:00
Sean Vig
bcc7982b3b
PEP8 radio/util/sportparse.py
...
Remove unused import, fix whitespace, indentation, and comments
2015-12-13 18:55:02 -06:00
Sean Vig
0743785126
PEP8 radio/util/sinus.py
...
Fix whitespace
2015-12-13 18:55:02 -06:00
Sean Vig
196dbb1d39
PEP8 radio/util/parse.py
...
Fix whitespace and indentation
2015-12-13 18:55:02 -06:00
Sean Vig
fa0ded50fe
PEP8 radio/util/luaexport.py
...
Fix indentation
2015-12-13 18:55:02 -06:00
Sean Vig
2968b25cfa
PEP8 radio/util/include-guard.py
...
Split imports, fix whitespace
2015-12-13 18:55:02 -06:00
Sean Vig
39ee317190
PEP8 radio/util/img2lbm.py
...
Fix whitespace
2015-12-13 18:54:55 -06:00
Sean Vig
710482e821
PEP8 radio/util/font2png.py
...
Fix whitespace and indentations, remove semicolons
2015-12-13 18:39:02 -06:00
Sean Vig
73f9dac120
PEP8 radio/util/fat12.py
...
Fix indentation and whitespace
2015-12-13 18:32:54 -06:00
Sean Vig
7dcd96d258
PEP8 radio/util/dsm2.py
...
Fix indentation and whitespace
2015-12-13 18:32:54 -06:00
Sean Vig
9d13484291
PEP8 radio/util/copyright.py
...
Remove unused imports, fix whitespace, fix comments
2015-12-13 18:32:54 -06:00
Sean Vig
be154140b3
PEP8 radio/util/codecs.py
...
Fix white space
2015-12-13 18:32:53 -06:00
Sean Vig
054952edcb
PEP8 radio/util/capitalize.py
...
Split imports, fix indentation
2015-12-13 18:32:53 -06:00
Sean Vig
3d6533c88b
PEP8 radio/util/bin2lbm.py
...
Fix indentation
2015-12-13 18:32:53 -06:00
Sean Vig
a0f6b0e913
PEP8 radio/util/addtr.py
...
Split imports, fix indentation
2015-12-13 18:32:53 -06:00
Sean Vig
50d8e21533
PEP8 radio/util/add-issue-links.py
...
Remove unused imports, fix indentation
2015-12-13 18:32:53 -06:00
Sean Vig
b8800ed30e
Update Makefile to allow Python 3
...
We no longer must enforce Python 2, so let Python 3 be run if that is
the system Python
2015-12-13 18:31:50 -06:00
Sean Vig
5efa5d47d3
Use Python 2/3 compatible scripts
...
Almost entirely fixing print statements, but also a couple importing
changes, wrapped in try/excepts, and one case where dict.keys() not
being a list would be a problem.
Also reverts e41139a397
The real fix for #1907
2015-12-13 18:28:44 -06:00