diff options
author | Philipp Hahn <hahn@univention.de> | 2018-11-20 08:34:48 +0100 |
---|---|---|
committer | Philipp Hahn <hahn@univention.de> | 2020-08-06 08:50:37 +0200 |
commit | 0ca8dc6340a85d0cb021d860a166ad4b92251d23 (patch) | |
tree | 907069ac431a9de9bc1590e58c90d35bee852cbe /sanitytest.py | |
parent | 7c93891420a8df6d6b6e3f141548c6dae6664789 (diff) | |
download | libvirt-python-0ca8dc6340a85d0cb021d860a166ad4b92251d23.tar.gz |
Normalize white space
indent by 4 spaces
one spaces around assignments
Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'sanitytest.py')
-rw-r--r-- | sanitytest.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sanitytest.py b/sanitytest.py index f187c15..90e6a7a 100644 --- a/sanitytest.py +++ b/sanitytest.py @@ -22,6 +22,7 @@ def get_libvirt_api_xml_path(): sys.exit(proc.returncode) return stdout.splitlines()[0] + # Path to the libvirt API XML file if len(sys.argv) >= 3: xml = sys.argv[2] @@ -96,7 +97,7 @@ for n in set: # Phase 2: Identify all classes and methods in the 'libvirt' python module gotenums = [] gottypes = [] -gotfunctions = { "libvirt": [] } +gotfunctions = {"libvirt": []} for name in dir(libvirt): if name[0] == '_': @@ -188,7 +189,6 @@ for cname in wantfunctions: name.endswith("Callback")): continue - # virEvent APIs go into main 'libvirt' namespace not any class if name[0:8] == "virEvent": if name[-4:] == "Func": @@ -231,7 +231,6 @@ for name in sorted(basicklassmap): else: continue - # All the error handling methods need special handling if klass == "libvirt": if func in ["CopyLastError", "DefaultErrorFunc", @@ -264,7 +263,7 @@ for name in sorted(basicklassmap): "LookupByUUIDString", "LookupByVolume" "LookupByName", "LookupByID", "LookupByName", "LookupByKey", "LookupByPath", "LookupByMACString", "LookupByUsage", "LookupByVolume", - "LookupByTargetPath","LookupSCSIHostByWWN", "LookupByPortDev", + "LookupByTargetPath", "LookupSCSIHostByWWN", "LookupByPortDev", "Restore", "RestoreFlags", "SaveImageDefineXML", "SaveImageGetXMLDesc", "DefineXMLFlags"]: if klass != "virDomain": @@ -386,7 +385,7 @@ for name in sorted(finalklassmap): # These exist in C and exist in python, but we've got # a pure-python impl so don't check them if name in ["virStreamRecvAll", "virStreamSendAll", - "virStreamSparseRecvAll", "virStreamSparseSendAll"]: + "virStreamSparseRecvAll", "virStreamSparseSendAll"]: continue try: |