Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'''


def get_github_access_token(cmd, scope_list=None):
def get_github_access_token(cmd, scope_list=None): # pylint:disable=unused-import
Comment thread
jiasli marked this conversation as resolved.
Outdated
if scope_list:
for scope in scope_list:
if scope not in GITHUB_OAUTH_SCOPES:
Expand All @@ -30,11 +30,9 @@ def get_github_access_token(cmd, scope_list=None):
'client_id': GITHUB_OAUTH_CLIENT_ID
}

import base64
import json
import requests
import time
from urllib.parse import urlparse, parse_qs
from urllib.parse import parse_qs

try:
response = requests.post(authorize_url, data=authorize_url_data)
Expand Down