Skip to content

Commit c22b92a

Browse files
committed
type('') to str
1 parent 3d3b064 commit c22b92a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def get_authorization_header(request):
1919
Hide some test client ickyness where the header can be unicode.
2020
"""
2121
auth = request.META.get('HTTP_AUTHORIZATION', b'')
22-
if isinstance(auth, type('')):
22+
if isinstance(auth, str):
2323
# Work around django test client oddness
2424
auth = auth.encode(HTTP_HEADER_ENCODING)
2525
return auth

0 commit comments

Comments
 (0)