]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
genrandconfig: fix (some) pep8 warnings
authorArnout Vandecappelle <arnout@mind.be>
Fri, 21 Jul 2017 01:05:10 +0000 (03:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Jul 2017 20:42:15 +0000 (22:42 +0200)
commit30f7fec0a8590604d4d481f0b8e9db826f2b8af7
treee0e67267e54e9d30dbd95ff4d96654508e8639cc
parent59419cdac1af86abbd780305b33136d28f11d3ec
genrandconfig: fix (some) pep8 warnings

Warnings fixed:
E731 do not assign a lambda expression, use a def
 -> urlopen_closing is defined with a def. urlopen is not used
    elsewhere so inlined.
E302 expected 2 blank lines
E501 line too long
 -> long lines due to a long string are NOT split
E701 multiple statements on one line (colon)
E722 do not use bare except'
 -> use "except Exception", so KeyInterrupt and SystemExit are still
    passed. We never intended to catch those.
E741 ambiguous variable name 'l'
 -> variable name is replaced with the much more descriptive
    toolchains_csv
E271 multiple spaces after keyword
E231 missing whitespace after ','

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/genrandconfig