From: Dan Kenigsberg Date: Mon, 27 Sep 2010 08:58:28 +0000 (+0200) Subject: python: drop unnecessary conn assignment X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=fe3bb9440a46ae626c9bfd34882f3ad5823d7396;p=libvirt.git python: drop unnecessary conn assignment Since 554d82a200289938d5639a782a9f12e3e2e968f0, conn is unused. Let's drop it - but keep the signature of the constructor for backward compatibility. --- diff --git a/python/libvirt-override.py b/python/libvirt-override.py index de1af2d9ef..d544a0e64d 100644 --- a/python/libvirt-override.py +++ b/python/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()