]> git.proxmox.com Git - mirror_zfs.git/commit
Fix flake 8 style warnings
authorGregor Kopka <mailfrom-github@kopka.net>
Wed, 26 Sep 2018 18:02:26 +0000 (20:02 +0200)
committerTony Hutter <hutter2@llnl.gov>
Fri, 22 Feb 2019 17:47:34 +0000 (09:47 -0800)
commitc32c2f17d06cea5dc298b404fad7696921e490e0
treed246a34fa07640586018f3fb1aa51d1147c0cebb
parent2254b2bbbe17a1ad34b016d1605fea49c01461cf
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/cmd/test-runner.py