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
Next Next commit
Fix linter error in _github_oauth.py
  • Loading branch information
jiasli committed May 7, 2021
commit ed0d33ccdf5ab08b9f89745caf5eea6a252151de
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
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