From c15cb6575b88b56b48fb21e66931ab2108c8b23c Mon Sep 17 00:00:00 2001 From: AKFish Date: Wed, 21 Aug 2013 15:33:25 +0800 Subject: [PATCH] Update Download.py --- github/Download.py | 3 --- github/Repository.py | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/github/Download.py b/github/Download.py index 47db03a8..7555a8c3 100644 --- a/github/Download.py +++ b/github/Download.py @@ -30,9 +30,6 @@ class Download(github.GithubObject.CompletableGithubObject): """ This class represents Downloads as returned for example by http://developer.github.com/v3/todo """ - def __init__(self, requester, attributes, completed): - # Adapte for __init__ change, remove later - github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed) @property def accesskeyid(self): diff --git a/github/Repository.py b/github/Repository.py index 2233b5d8..023a43be 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -367,7 +367,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.Download.Download(self._requester, data, completed=True) + return github.Download.Download(self._requester, headers, data, completed=True) def create_git_blob(self, content, encoding): """ @@ -948,7 +948,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.Download.Download(self._requester, data, completed=True) + return github.Download.Download(self._requester, headers, data, completed=True) def get_downloads(self): """