summaryrefslogtreecommitdiff
path: root/libvirt-override.py
diff options
context:
space:
mode:
authorDan Kenigsberg <danken@redhat.com>2010-09-27 10:58:28 +0200
committerEric Blake <eblake@redhat.com>2010-09-27 15:10:38 -0600
commit2970a62d8b9e60d68bf39ea5f97eacb3c8f62ba1 (patch)
treedc3f56166894a9435d3dfc94bba47419d736b091 /libvirt-override.py
parent1abf41565f9e434326aeb2d1d72754c424102b46 (diff)
downloadlibvirt-python-2970a62d8b9e60d68bf39ea5f97eacb3c8f62ba1.tar.gz
python: drop unnecessary conn assignment
Since 554d82a200289938d5639a782a9f12e3e2e968f0, conn is unused. Let's drop it - but keep the signature of the constructor for backward compatibility.
Diffstat (limited to 'libvirt-override.py')
-rw-r--r--libvirt-override.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/libvirt-override.py b/libvirt-override.py
index de1af2d..d544a0e 100644
--- a/libvirt-override.py
+++ b/libvirt-override.py
@@ -18,15 +18,6 @@ import types
class libvirtError(Exception):
def __init__(self, defmsg, conn=None, dom=None, net=None, pool=None, vol=None):
- if dom is not None:
- conn = dom._conn
- elif net is not None:
- conn = net._conn
- elif pool is not None:
- conn = pool._conn
- elif vol is not None:
- conn = vol._conn
-
# Never call virConnGetLastError().
# virGetLastError() is now thread local
err = virGetLastError()