diff options
author | cclauss <[email protected]> | 2017-01-08 11:23:45 +0100 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2017-03-04 09:38:32 -0500 |
commit | df8a5e76a3f834f9676e8b475bcf1d6216d7efc2 (patch) | |
tree | f6bad9210747957f3abc5034e9946912afdfd452 /libhb | |
parent | b34b6735a0cf072f0b1683266ab9a067686b159a (diff) |
configure: Modernize Python in configure.py.
file is a Python built-in (https://docs.python.org/2/library/functions.html?highlight=file#file) so it should be avoided as a variable name.
Use "with open" syntax to automate file close where possible.
os.getenv() will return None if the key is not in os.environ.
Use ternary if to simplify conditional assignment where it improves, not hinders, readability.
Closes #500.
Diffstat (limited to 'libhb')
0 files changed, 0 insertions, 0 deletions