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:
Cole Robinson 2020-01-27 05:27:24 -05:00
parent 7ccba87966
commit f023b9f8c9

View File

@ -101,9 +101,6 @@ class VirtinstConnection(object):
##############
def __getattr__(self, attr):
if attr in self.__dict__:
return self.__dict__[attr]
# Proxy virConnect API calls
libvirtconn = self.__dict__.get("_libvirtconn")
return getattr(libvirtconn, attr)