remove unused imports and lint

This commit is contained in:
Jimmy Zelinskie 2015-12-22 14:54:47 -05:00 committed by Jimmy Zelinskie
parent bcea268fcb
commit 0dcfcebe34

View file

@ -152,7 +152,7 @@ class GithubOAuthConfig(OAuthConfig):
# - 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())
result = http_client.get(validate_endpoint, auth=(self.client_id(), self.client_secret()),
timeout=5)
timeout=5)
return result.status_code == 404
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())
result = http_client.get(org_endpoint,
headers={'Accept': 'application/vnd.github.moondragon+json'},
timeout=5)
headers={'Accept': 'application/vnd.github.moondragon+json'},
timeout=5)
return result.status_code == 200