]> granicus.if.org Git - zfs/commit
Fix flake 8 style warnings
authorGregor Kopka <mailfrom-github@kopka.net>
Wed, 26 Sep 2018 18:02:26 +0000 (20:02 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 26 Sep 2018 18:02:26 +0000 (11:02 -0700)
commit3ed2fbcc1ce36fdc516aa11848692a4e4c4a2bc0
tree6d8206d36b637e998211efccb7ef0d65fb144ebf
parentc13060e4787e9578dafad85a47c62457424bec9c
Fix flake 8 style warnings

Ran zts-report.py and test-runner.py from ./tests/test-runner/bin/
through the 2to3 (https://docs.python.org/2/library/2to3.html).
Checked the result, fixed:
- 'maxint' -> 'maxsize' that 2to3 missed.
- 'cmp=' parameter for a 'sorted()' with a 'key=' version.
- try/except wrapping of configparser import as there are still
  python 2.7 systems that lack a compatibility shim

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gregor Kopka <gregor@kopka.net>
Closes #7925
Closes #7952
tests/test-runner/bin/test-runner.py
tests/test-runner/bin/zts-report.py