1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-02 04: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:
Daniel Veillard
2007-07-24 15:32:55 +00:00
parent 61177b29d4
commit ba4524b0d1

View File

@ -870,10 +870,6 @@ def buildWrappers():
txt.write("Class %s()\n" % (classname))
classes.write("class %s:\n" % (classname))
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")
else:
classes.write(" def __init__(self, _obj=None):\n")