[Libguestfs] [PATCH 0/8] python: PEP 8 fixes

Pino Toscano ptoscano at redhat.com
Wed May 4 14:23:10 UTC 2016


Hi,

this series cleans up the Python sources, either static or generated,
including also tests, to make them PEP 8 compliant; see
https://www.python.org/dev/peps/pep-0008/ and tools like pep8.
Almost all the issues reported by pep8 are fixed, reducing the issues
from 3818 to 7.

The changes should have no effect on the actual code, while it will
help Python users with consistency with other Python code.

Thanks,

Pino Toscano (8):
  python: PEP 8: adapt whitespaces in lines
  python: PEP 8: adapt empty lines
  python: PEP 8: remove trailing semicolons
  python: PEP 8: break compound statements
  python: PEP 8: avoid too long lines
  python: PEP 8: miscellaneous indentation fixes
  python: PEP 8: avoid whitespace-only lines in docstrings
  python: PEP 8: miscellaneous coding fixes

 generator/bindtests.ml           |  12 ++--
 generator/python.ml              | 146 ++++++++++++++++++++++++++-------------
 generator/python.mli             |   8 +++
 python/examples/create_disk.py   |  36 +++++-----
 python/examples/inspect_vm.py    |  42 +++++------
 python/setup.py.in               |  69 +++++++++---------
 python/t/test010Load.py          |   5 +-
 python/t/test070OptArgs.py       |  23 +++---
 python/t/test080Version.py       |  25 +++----
 python/t/test090RetValues.py     | 142 ++++++++++++++++++-------------------
 python/t/test100Launch.py        |  25 +++----
 python/t/test410CloseEvent.py    |  18 ++---
 python/t/test420LogMessages.py   |  30 ++++----
 python/t/test800ExplicitClose.py |  30 ++++----
 python/t/test810RHBZ811650.py    |  17 ++---
 python/t/test820RHBZ912499.py    |  58 ++++++++--------
 python/t/test910Libvirt.py       |  17 ++---
 python/t/tests_helper.py         |  30 ++++----
 tests/http/test-http.py          | 143 +++++++++++++++++++-------------------
 19 files changed, 473 insertions(+), 403 deletions(-)

-- 
2.5.5




More information about the Libguestfs mailing list