python: PEP 8: miscellaneous coding fixes

python/guestfs.py:136:37: E712 comparison to True should be 'if cond is True:' or 'if cond:'
python/t/tests_helper.py:42:8: E713 test for membership should be 'not in'

No functional changes, as the new versions follow the suggested Python
coding style to do the same things.
This commit is contained in:
Pino Toscano
2016-05-04 15:54:22 +02:00
parent 060b724c49
commit 43358290b3
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ def skipUnlessLibvirtHasCPointer():
return unittest.skip("could not import libvirt")
# Check we're using the version of libvirt-python that has
# c_pointer() methods.
if not "c_pointer" in dir(libvirt.open(None)):
if "c_pointer" not in dir(libvirt.open(None)):
return unittest.skip("libvirt-python doesn't support c_pointer()")
return lambda func: func