From 0ca8dc6340a85d0cb021d860a166ad4b92251d23 Mon Sep 17 00:00:00 2001 From: Philipp Hahn Date: Tue, 20 Nov 2018 08:34:48 +0100 Subject: Normalize white space indent by 4 spaces one spaces around assignments Signed-off-by: Philipp Hahn --- sanitytest.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sanitytest.py') 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: -- cgit v1.2.1