Skip to content

Commit

Permalink
Add __getattr__ to handle sub in message_filters as standard one
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 10, 2015
1 parent 078c8d6 commit e743b51
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utilities/message_filters/src/message_filters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ def getTopic(self):
def unregister(self):
self.sub.unregister()

def __getattr__(self, key):
return self.sub.__getattribute__(key)

class Cache(SimpleFilter):

"""
Expand Down

0 comments on commit e743b51

Please sign in to comment.