aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/services/base.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-03-04 18:27:50 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-03-04 18:27:50 +0100
commitb9ad335335f9562d5cf033783b41fe40dd6efc03 (patch)
treeb7d381b753eef33db0d71a1777720806e80ade03 /pygithub3/services/base.py
parentRefactor result. Now it's a package (diff)
downloadpython-github3-b9ad335335f9562d5cf033783b41fe40dd6efc03.tar.xz
python-github3-b9ad335335f9562d5cf033783b41fe40dd6efc03.zip
Get repository's commits supported with new result
Diffstat (limited to 'pygithub3/services/base.py')
-rw-r--r--pygithub3/services/base.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pygithub3/services/base.py b/pygithub3/services/base.py
index 1357815..886a666 100644
--- a/pygithub3/services/base.py
+++ b/pygithub3/services/base.py
@@ -2,7 +2,7 @@
# -*- encoding: utf-8 -*-
from pygithub3.core.client import Client
-from pygithub3.core import result
+from pygithub3.core.result import smart, normal
from pygithub3.requests.base import Factory
from pygithub3.core.errors import NotFound
@@ -138,8 +138,12 @@ class Service(object):
return request.resource.loads(response.content)
def _get_result(self, request, **kwargs):
- method = result.smart.Method(self._client.get, request, **kwargs)
- return result.smart.Result(method)
+ method = smart.Method(self._client.get, request, **kwargs)
+ return smart.Result(method)
+
+ def _get_normal_result(self, request, **kwargs):
+ method = normal.Method(self._client.get, request, **kwargs)
+ return normal.Result(method)
class MimeTypeMixin(object):