aboutsummaryrefslogtreecommitdiffstats
path: root/github3/handlers/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-13 19:29:12 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-13 19:29:12 +0100
commit78752f56adb57bb1d5672a6ac819944477b7b529 (patch)
tree66fac159d33d9801710c3af63bad99c721a1f59f /github3/handlers/base.py
parentPEP8 and renaming (diff)
downloadpython-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.py6
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"""