diff options
Diffstat (limited to '')
-rw-r--r-- | pygithub3/services/base.py | 10 |
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): |