mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-26 10:03:54 +03:00
connection: Drop dead __getattr__ code
__getattr__ is only called when an attr is not already found in __dict__, so this path will never trigger Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
7ccba87966
commit
f023b9f8c9
@ -101,9 +101,6 @@ class VirtinstConnection(object):
|
|||||||
##############
|
##############
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
if attr in self.__dict__:
|
|
||||||
return self.__dict__[attr]
|
|
||||||
|
|
||||||
# Proxy virConnect API calls
|
# Proxy virConnect API calls
|
||||||
libvirtconn = self.__dict__.get("_libvirtconn")
|
libvirtconn = self.__dict__.get("_libvirtconn")
|
||||||
return getattr(libvirtconn, attr)
|
return getattr(libvirtconn, attr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user