]> xenbits.xensource.com Git - libvirt.git/commitdiff
python: drop unnecessary conn assignment
authorDan Kenigsberg <danken@redhat.com>
Mon, 27 Sep 2010 08:58:28 +0000 (10:58 +0200)
committerEric Blake <eblake@redhat.com>
Mon, 27 Sep 2010 21:10:38 +0000 (15:10 -0600)
Since 554d82a200289938d5639a782a9f12e3e2e968f0, conn is unused. Let's
drop it - but keep the signature of the constructor for backward
compatibility.

python/libvirt-override.py

index de1af2d9eff59d90a379ea3d455225904a74c884..d544a0e64d19cc8b3c27eea2e14f52c5e0705957 100644 (file)
@@ -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()