diff options
author | 2012-02-06 21:39:59 +0100 | |
---|---|---|
committer | 2012-02-07 19:22:59 +0100 | |
commit | 86453d2fb40e21280aeeee7e5ee11229bcb5eaac (patch) | |
tree | 2490c76fbbdef9bc14e5c1c2b83b632b1401eb2e /pygithub3/resources/base.py | |
parent | Something confusing about PUT request (diff) | |
download | python-github3-86453d2fb40e21280aeeee7e5ee11229bcb5eaac.tar.xz python-github3-86453d2fb40e21280aeeee7e5ee11229bcb5eaac.zip |
Clean requests interface
Refactorize on build request to support specific requests cleaner
*Also support to verbose on requests library
Diffstat (limited to 'pygithub3/resources/base.py')
-rw-r--r-- | pygithub3/resources/base.py | 3 |
1 files changed, 3 insertions, 0 deletions
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) |