client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit c9f198408f58235a4fa8bdbe0dcc1b91f42a757c
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Wed Dec 21 15:48:54 2011 +0100
751760 - use __getattr__ rather then __getattribute__
diff --git a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
index 989e876..c88169b 100644
--- a/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
+++ b/client/rhel/rhn-client-tools/src/up2date_client/up2dateErrors.py
@@ -41,14 +41,14 @@ class Error(YumBaseError):
self.log.log_me(self.value)
return self.value
- def __getattribute__(self, name):
+ def __getattr__(self, name):
""" Spacewalk backend still use errmsg, let have errmsg as alias to value """
if name == 'errmsg':
return self.value
else:
- if hasattr(YumBaseError, '__getattribute__'):
+ if hasattr(YumBaseError, '__getattr__'):
# rhel5 has no __getattribute__()
- return YumBaseError.__getattribute__(self, name)
+ return YumBaseError.__getattr__(self, name)
else:
if name in self.__dict__:
return self.__dict__[name]