aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/resources/repos.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-22 01:16:10 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-22 01:16:32 +0100
commit36381d426f5da0552d2db0b60c757ef5e3a67c2d (patch)
treee5dc0081cbb3cc67655f45ee217ebf7165dc0fa2 /pygithub3/resources/repos.py
parentRepos.downloads service done (diff)
downloadpython-github3-36381d426f5da0552d2db0b60c757ef5e3a67c2d.tar.xz
python-github3-36381d426f5da0552d2db0b60c757ef5e3a67c2d.zip
Repos.forks service done
Diffstat (limited to 'pygithub3/resources/repos.py')
-rw-r--r--pygithub3/resources/repos.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pygithub3/resources/repos.py b/pygithub3/resources/repos.py
index 865f039..89e5682 100644
--- a/pygithub3/resources/repos.py
+++ b/pygithub3/resources/repos.py
@@ -106,6 +106,9 @@ class Branch(Resource):
class Download(Resource):
+ def __str__(self):
+ return '<Download (%s)>' % getattr(self, 'name', '')
+
def ball_to_upload(self):
return OrderedDict({
'key': self.path, 'acl': self.acl, 'success_action_status': '201',