1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-03 08:21:58 +03:00

Remove legacy libvirtError arguments

The fields have been deprecated in C with
git:f60dc0bc09f09c6817d6706a9edb1579a3e2b2b8

They are only passed to the libvirtError constructor, but not stored for
later or used anywhere else.

sed -ri '/raise libvirtError/s/, \w+=self(\._dom)?//' *.py

Signed-off-by: Philipp Hahn <hahn@univention.de>
This commit is contained in:
Philipp Hahn
2018-11-21 07:55:57 +01:00
parent 0ca8dc6340
commit ee5c856af7
8 changed files with 57 additions and 57 deletions

View File

@ -19,7 +19,7 @@ except ImportError:
# The root of all libvirt errors.
class libvirtError(Exception):
def __init__(self, defmsg, conn=None, dom=None, net=None, pool=None, vol=None):
def __init__(self, defmsg):
# Never call virConnGetLastError().
# virGetLastError() is now thread local