aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources
diff options
context:
space:
mode:
Diffstat (limited to 'pygithub3/resources')
-rw-r--r--pygithub3/resources/base.py3
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)