diff options
author | 2011-11-01 13:14:29 +0100 | |
---|---|---|
committer | 2011-11-01 13:14:29 +0100 | |
commit | c0a5c2c68764112afcbf9795c7194a8eafc8352c (patch) | |
tree | 53ff09016f56fdc8ecb8ac9cf5af162a1bed7d97 /github3/models/base.py | |
parent | Fix bug. Import own exceptions (diff) | |
download | python-github3-c0a5c2c68764112afcbf9795c7194a8eafc8352c.tar.xz python-github3-c0a5c2c68764112afcbf9795c7194a8eafc8352c.zip |
Fix bug. PEP8
Diffstat (limited to 'github3/models/base.py')
-rw-r--r-- | github3/models/base.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/github3/models/base.py b/github3/models/base.py index 1b1ce89..f98af2d 100644 --- a/github3/models/base.py +++ b/github3/models/base.py @@ -25,10 +25,11 @@ class BaseResource(object): def post_map(self): try: handler = self.handler() - methods = filter(lambda x: x[0].startswith('get') and callable(x), - inspect.getmembers(handler, inspect.ismethod)) + methods = filter( + lambda x: x[0].startswith('get') and callable(x[1]), + inspect.getmembers(handler, inspect.ismethod)) for name, callback in methods: - setattr(self, method, callback) + setattr(self, name, callback) except: pass |