Add er.Generator.__getattr__
This commit is contained in:
1 parent
c25ee531a2
commit
6a2e535bcb
2 files changed
+4
-1
No files matched your search
@@ -773,6 +773,9 @@ class Generator(use_metaclass(cache.CachedMetaClass, pr.Base)):
|
||||
def parent(self):
|
||||
return self.func.parent
|
||||
|
||||
def __getattr__(self, name):
|
||||
return getattr(self.func, name)
|
||||
|
||||
def __repr__(self):
|
||||
return "<%s of %s>" % (type(self).__name__, self.func)
|
||||
|
||||
|
||||
Reference in new issue
Block a user