Merge pull request #31544 from DSRCompany/issues/29701_getattr_recursion_protection

Protect getattr from recursion
This commit is contained in:
Mike Place 2016-02-29 10:48:15 -07:00
commit 5a6aff1791

View file

@ -61,8 +61,9 @@ class SyncWrapper(object):
def __getattribute__(self, key):
try:
return object.__getattribute__(self, key)
except AttributeError:
pass
except AttributeError as ex:
if key == 'async':
raise ex
attr = getattr(self.async, key)
if hasattr(attr, '__call__'):
def wrap(*args, **kwargs):