remove unused imports and lint
This commit is contained in:
parent
bcea268fcb
commit
0dcfcebe34
1 changed files with 3 additions and 3 deletions
|
@ -152,7 +152,7 @@ class GithubOAuthConfig(OAuthConfig):
|
||||||
# - If the pair is valid, then we get a 404 because the 'foo' token does not exists.
|
# - If the pair is valid, then we get a 404 because the 'foo' token does not exists.
|
||||||
validate_endpoint = self._get_url(api_endpoint, 'applications/%s/tokens/foo' % self.client_id())
|
validate_endpoint = self._get_url(api_endpoint, 'applications/%s/tokens/foo' % self.client_id())
|
||||||
result = http_client.get(validate_endpoint, auth=(self.client_id(), self.client_secret()),
|
result = http_client.get(validate_endpoint, auth=(self.client_id(), self.client_secret()),
|
||||||
timeout=5)
|
timeout=5)
|
||||||
return result.status_code == 404
|
return result.status_code == 404
|
||||||
|
|
||||||
def validate_organization(self, organization_id, http_client):
|
def validate_organization(self, organization_id, http_client):
|
||||||
|
@ -160,8 +160,8 @@ class GithubOAuthConfig(OAuthConfig):
|
||||||
org_endpoint = self._get_url(api_endpoint, 'orgs/%s' % organization_id.lower())
|
org_endpoint = self._get_url(api_endpoint, 'orgs/%s' % organization_id.lower())
|
||||||
|
|
||||||
result = http_client.get(org_endpoint,
|
result = http_client.get(org_endpoint,
|
||||||
headers={'Accept': 'application/vnd.github.moondragon+json'},
|
headers={'Accept': 'application/vnd.github.moondragon+json'},
|
||||||
timeout=5)
|
timeout=5)
|
||||||
|
|
||||||
return result.status_code == 200
|
return result.status_code == 200
|
||||||
|
|
||||||
|
|
Reference in a new issue