Fix deprecation warning

In sagemath, while doctesting `src/sage/repl/ipython_kernel/install.py`:

> DeprecationWarning: invalid escape sequence '\s'

The solution is to make the regex a raw string.
pull/6253/head
Gonzalo Tornaría 4 years ago committed by GitHub
parent 3e0e92de70
commit f99beefdf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -112,7 +112,7 @@ class LoginHandler(IPythonHandler):
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):

Loading…
Cancel
Save