Skip to content

Commit

Permalink
fix deprecation warning by making the regex a raw string
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Nov 1, 2021
1 parent 8b9a3f7 commit b152441
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jupyter_server/auth/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def set_login_cookie(cls, handler, user_id=None):
handler.set_secure_cookie(handler.cookie_name, user_id, **cookie_options)
return user_id

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

@classmethod
def get_token(cls, handler):
Expand Down

0 comments on commit b152441

Please sign in to comment.