1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-07-29 19:41:52 +03:00

Blacklist virGetLastError{Code,Domain}

These methods will not be exposed to apps, since we auto raise
all errors.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Daniel P. Berrangé
2018-06-06 16:49:32 +01:00
parent 8099ca5ecb
commit c682257e6f

View File

@ -234,7 +234,9 @@ for name in sorted(basicklassmap):
"ErrorFunc", "FreeError",
"SaveLastError", "ResetError"]:
continue
elif func in ["GetLastError", "GetLastErrorMessage", "ResetLastError", "Initialize"]:
elif func in ["GetLastError", "GetLastErrorMessage",
"GetLastErrorCode", "GetLastErrorDomain",
"ResetLastError", "Initialize"]:
func = "vir" + func
elif func == "SetErrorFunc":
func = "RegisterErrorHandler"