2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 02:05:12 +01:00

object.__getattr__ -> object.__getattribute__

This commit is contained in:
Thomas Nagy 2017-10-20 20:05:06 +02:00
parent ffe88abe80
commit ec356383e2
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 2 additions and 4 deletions

View File

@ -107,7 +107,7 @@ class ConfigSet(object):
conf.env['value']
"""
if name in self.__slots__:
return object.__getattr__(self, name)
return object.__getattribute__(self, name)
else:
return self[name]

View File

@ -43,9 +43,7 @@ class Popen(object):
if Popen.verbose:
sys.stdout.write("Getattr: %s..." % name)
if name in Popen.__slots__:
if Popen.verbose:
print("In slots!")
return object.__getattr__(self, name)
return object.__getattribute__(self, name)
else:
if self.popen is not None:
if Popen.verbose: