Skip to content

Commit

Permalink
Fix for modern PyGithub
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Owen authored Nov 20, 2018
1 parent 70a654c commit 6ae5146
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions pyup/providers/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ def iter_git_tree(self, repo, branch):

def get_file(self, repo, path, branch):
logger.info("Getting file at {} for branch {}".format(path, branch))
# if the path has no root, add it
if not path.startswith("/"):
path = "/" + path
try:
contentfile = repo.get_contents(quote(path), ref=branch)
return contentfile.decoded_content.decode("utf-8"), contentfile
Expand Down Expand Up @@ -153,8 +150,6 @@ def create_commit(self, path, branch, commit_message, content, sha, repo, commit
# hardware with Gigabit NICs (probably because they do some async stuff).
# If we encounter an error, the loop waits for 1/2/3 seconds before trying again.
# If the loop reaches the 4th iteration, we give up and raise the error.
if not path.startswith("/"):
path = "/" + path

# integrations don't support committer data being set. Add this as extra kwarg
# if we're not dealing with an integration token
Expand Down

0 comments on commit 6ae5146

Please sign in to comment.