Skip to content

Commit b1eb3ae

Browse files
committed
Fix flake W605.
1 parent 4d0c122 commit b1eb3ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

oidc_provider/lib/utils/oauth2.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def extract_access_token(request):
2121
"""
2222
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
2323

24-
if re.compile('^[Bb]earer\s{1}.+$').match(auth_header):
24+
if re.compile(r'^[Bb]earer\s{1}.+$').match(auth_header):
2525
access_token = auth_header.split()[1]
2626
else:
2727
access_token = request.GET.get('access_token', '')
@@ -39,7 +39,7 @@ def extract_client_auth(request):
3939
"""
4040
auth_header = request.META.get('HTTP_AUTHORIZATION', '')
4141

42-
if re.compile('^Basic\s{1}.+$').match(auth_header):
42+
if re.compile(r'^Basic\s{1}.+$').match(auth_header):
4343
b64_user_pass = auth_header.split()[1]
4444
try:
4545
user_pass = b64decode(b64_user_pass).decode('utf-8').split(':')

0 commit comments

Comments
 (0)