Permalink
Browse files

Changed __getattr__ to only return a local attribute if it is actuall…

…y in __dict__, enabling pass-throughs of things like __enter__ and __exit__
  • Loading branch information...
1 parent 8586c46 commit 5743314e21321a7ac368e91a5ee55786c65e9575 @HughMacdonald HughMacdonald committed Nov 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 nukeExternalControl/client.py
@@ -345,7 +345,7 @@ def __getattr__(self, attrname):
result = object.attrname
'''
- if attrname[0] == "_":
+ if attrname in self.__dict__:
return self.__dict__[attrname]
else:
return self._connection.get_object_attribute(self._id, attrname)

0 comments on commit 5743314

Please sign in to comment.