mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
python: simplify complicated conditional assignment
This commit is contained in:
parent
2a40951148
commit
8f3ead2da9
@ -1455,8 +1455,7 @@ def buildWrappers(module):
|
||||
elif classname in [ "virDomainSnapshot" ]:
|
||||
classes.write(" self._dom = dom\n")
|
||||
classes.write(" self._conn = dom.connect()\n")
|
||||
classes.write(" if _obj != None:self._o = _obj;return\n")
|
||||
classes.write(" self._o = None\n\n")
|
||||
classes.write(" self._o = _obj\n\n")
|
||||
destruct=None
|
||||
if classes_destructors.has_key(classname):
|
||||
classes.write(" def __del__(self):\n")
|
||||
|
Loading…
Reference in New Issue
Block a user