HomeFreeBSD

Fix flake 8 style warnings

Description

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

Details

Provenance
Gregor Kopka <mailfrom-github@kopka.net>Authored on Sep 26 2018, 6:02 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 26 2018, 6:02 PM
Parents
rGc13060e4787e: Linux 4.19-rc3+ compat: Remove refcount_t compat
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3ed2fbcc1ce3: Fix flake 8 style warnings (authored by Gregor Kopka <mailfrom-github@kopka.net>).Sep 26 2018, 6:02 PM