Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brentpicasso committed Oct 18, 2024
1 parent 1068a81 commit 9f26b7a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pythonforandroid/recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ def report_hook(index, blksize, size):
# Mozilla/5.0 doesnt handle redirection for liblzma
url_opener.addheaders = [('User-agent', 'Wget/1.0')]
if self.github_access_token:
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'),
('Accept', 'application/vnd.github.v3.raw')]
url_opener.addheaders += [('Authorization', f'token {self.github_access_token}'), ('Accept', 'application/vnd.github.v3.raw')]
urlretrieve(url, target, report_hook)
except OSError as e:
attempts += 1
Expand Down

0 comments on commit 9f26b7a

Please sign in to comment.