mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user