Fix DeprecationWarning in escape sequences.

This commit is contained in:
Karthikeyan Singaravelan
2019-10-19 20:25:07 +05:30
parent 66f8d6a626
commit f3b1b5c7a6

View File

@@ -428,7 +428,7 @@ class HubAuth(SingletonConfigurable):
) )
auth_header_name = 'Authorization' auth_header_name = 'Authorization'
auth_header_pat = re.compile('token\s+(.+)', re.IGNORECASE) auth_header_pat = re.compile(r'token\s+(.+)', re.IGNORECASE)
def get_token(self, handler): def get_token(self, handler):
"""Get the user token from a request """Get the user token from a request