diff options
author | 2011-11-13 19:29:12 +0100 | |
---|---|---|
committer | 2011-11-13 19:29:12 +0100 | |
commit | 78752f56adb57bb1d5672a6ac819944477b7b529 (patch) | |
tree | 66fac159d33d9801710c3af63bad99c721a1f59f /github3/handlers/base.py | |
parent | PEP8 and renaming (diff) | |
download | python-github3-78752f56adb57bb1d5672a6ac819944477b7b529.tar.xz python-github3-78752f56adb57bb1d5672a6ac819944477b7b529.zip |
Testing on fire (handlers, user_handler)
Also fix bugs, pep8
Diffstat (limited to 'github3/handlers/base.py')
-rw-r--r-- | github3/handlers/base.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/github3/handlers/base.py b/github3/handlers/base.py index d0af418..68eb6b4 100644 --- a/github3/handlers/base.py +++ b/github3/handlers/base.py @@ -15,15 +15,15 @@ class Handler(object): def _prefix_resource(self, resource): prefix = getattr(self, 'prefix', '') - return '/'.join((prefix, resource)).rstrip('/') + return '/'.join((prefix, resource)).strip('/') def _get_converter(self, **kwargs): converter = kwargs.get( 'converter', # 1. in kwargs getattr(self, 'converter', # 2. in handler - Modelizer())) # 3. Default + Modelizer)) # 3. Default - return converter + return converter() def _put(self, resource, **kwargs): """ Put proxy request""" |