From b9ad335335f9562d5cf033783b41fe40dd6efc03 Mon Sep 17 00:00:00 2001 From: David Medina Date: Sun, 4 Mar 2012 18:27:50 +0100 Subject: Get repository's commits supported with new result --- pygithub3/services/base.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pygithub3/services/base.py') 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): -- cgit v1.2.3-59-g8ed1b