Skip to content

Commit 8b1bfd4

Browse files
committed
chore: formatting
1 parent cca8a85 commit 8b1bfd4

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

github_backup/github_backup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,8 @@ def get_auth(args, encode=True, for_git_cli=False):
460460
elif args.token:
461461
_path_specifier = "file://"
462462
if args.token.startswith(_path_specifier):
463-
args.token = (
464-
open(args.token[len(_path_specifier) :], "rt").readline().strip()
465-
)
463+
path_specifier_len = len(_path_specifier)
464+
args.token = open(args.token[path_specifier_len:], "rt").readline().strip()
466465
if not args.as_app:
467466
auth = args.token + ":" + "x-oauth-basic"
468467
else:
@@ -673,8 +672,7 @@ def _get_response(request, auth, template):
673672
def _construct_request(per_page, page, query_args, template, auth, as_app=None):
674673
querystring = urlencode(
675674
dict(
676-
list({"per_page": per_page, "page": page}.items())
677-
+ list(query_args.items())
675+
list({"per_page": per_page, "page": page}.items()) + list(query_args.items())
678676
)
679677
)
680678

0 commit comments

Comments
 (0)