From 86453d2fb40e21280aeeee7e5ee11229bcb5eaac Mon Sep 17 00:00:00 2001 From: David Medina Date: Mon, 6 Feb 2012 21:39:59 +0100 Subject: Clean requests interface Refactorize on build request to support specific requests cleaner *Also support to verbose on requests library --- pygithub3/resources/base.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pygithub3/resources') diff --git a/pygithub3/resources/base.py b/pygithub3/resources/base.py index 620df3e..ae038bd 100644 --- a/pygithub3/resources/base.py +++ b/pygithub3/resources/base.py @@ -22,6 +22,9 @@ class Resource(object): for attr in self._attrs: setattr(self, attr, self._attrs[attr]) + def __repr__(self): + return self.__str__() + @classmethod def loads(self, json_content): resource_chunk = json.loads(json_content) -- cgit v1.2.3-59-g8ed1b