mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-08-05 16:21:59 +03:00
* libvirt.spec.in NEWS docs/* po/*: preparing release 0.3.1
* src/libvirt.c python/generator.py: some cleanup and warnings from Richard W.M. Jones Daniel
This commit is contained in:
@ -870,10 +870,6 @@ def buildWrappers():
|
|||||||
txt.write("Class %s()\n" % (classname))
|
txt.write("Class %s()\n" % (classname))
|
||||||
classes.write("class %s:\n" % (classname))
|
classes.write("class %s:\n" % (classname))
|
||||||
if classname == "virDomain" or classname == "virNetwork":
|
if classname == "virDomain" or classname == "virNetwork":
|
||||||
# NB: Earlier versions of libvirt did not provide
|
|
||||||
# vir{Domain,Network}GetConnect, so we had to explicitly
|
|
||||||
# store the connection object in _conn. In future
|
|
||||||
# we won't need to do this.
|
|
||||||
classes.write(" def __init__(self, conn, _obj=None):\n")
|
classes.write(" def __init__(self, conn, _obj=None):\n")
|
||||||
else:
|
else:
|
||||||
classes.write(" def __init__(self, _obj=None):\n")
|
classes.write(" def __init__(self, _obj=None):\n")
|
||||||
|
Reference in New Issue
Block a user