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:
@ -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"
|
||||
|
Reference in New Issue
Block a user