mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 03:01:06 -03:30
Fixing up some pep8 issues
This commit is contained in:
@@ -20,7 +20,7 @@ class TokenAuthentication(authentication.TokenAuthentication):
|
||||
|
||||
def _get_x_auth_token_header(self, request):
|
||||
auth = request.META.get('HTTP_X_AUTH_TOKEN', '')
|
||||
if type(auth) == type(''):
|
||||
if isinstance(auth, type('')):
|
||||
# Work around django test client oddness
|
||||
auth = auth.encode(HTTP_HEADER_ENCODING)
|
||||
return auth
|
||||
|
||||
Reference in New Issue
Block a user