Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed May 29, 2023
1 parent cca8a85 commit 8b1bfd4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions github_backup/github_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,9 +460,8 @@ def get_auth(args, encode=True, for_git_cli=False):
elif args.token:
_path_specifier = "file://"
if args.token.startswith(_path_specifier):
args.token = (
open(args.token[len(_path_specifier) :], "rt").readline().strip()
)
path_specifier_len = len(_path_specifier)
args.token = open(args.token[path_specifier_len:], "rt").readline().strip()
if not args.as_app:
auth = args.token + ":" + "x-oauth-basic"
else:
Expand Down Expand Up @@ -673,8 +672,7 @@ def _get_response(request, auth, template):
def _construct_request(per_page, page, query_args, template, auth, as_app=None):
querystring = urlencode(
dict(
list({"per_page": per_page, "page": page}.items())
+ list(query_args.items())
list({"per_page": per_page, "page": page}.items()) + list(query_args.items())
)
)

Expand Down

0 comments on commit 8b1bfd4

Please sign in to comment.