Skip to content

Commit b152441

Browse files
committed
fix deprecation warning by making the regex a raw string
1 parent 8b9a3f7 commit b152441

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server/auth/login.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def set_login_cookie(cls, handler, user_id=None):
109109
handler.set_secure_cookie(handler.cookie_name, user_id, **cookie_options)
110110
return user_id
111111

112-
auth_header_pat = re.compile("token\s+(.+)", re.IGNORECASE)
112+
auth_header_pat = re.compile(r"token\s+(.+)", re.IGNORECASE)
113113

114114
@classmethod
115115
def get_token(cls, handler):

0 commit comments

Comments
 (0)