Skip to content

Commit

Permalink
Merge pull request #159 from mwarkentin/fix-invalid-escape-sequence
Browse files Browse the repository at this point in the history
fix invalid escape sequence (use raw string)
  • Loading branch information
mwarkentin authored May 5, 2020
2 parents ab95718 + 30e32ef commit 314d779
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
History
=======

1.1.1 (2020-05-04)
------------------

* [`#159 <https://github.com/mwarkentin/django-watchman/pull/159>`_] Fixed invalid escape sequence in decorators by changing to a raw string

1.1.0 (2020-03-16)
------------------

Expand Down
2 changes: 1 addition & 1 deletion watchman/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _parse_auth_header(auth_header):
# http://stackoverflow.com/questions/19028068/illegal-characters-in-http-headers
# https://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
# https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2
reg = re.compile('(\w+)[=] ?"?([\w-]+)"?') # noqa: W605
reg = re.compile(r'(\w+)[=] ?"?([\w-]+)"?')
header_dict = dict(reg.findall(auth_header))
return header_dict['Token']

Expand Down

0 comments on commit 314d779

Please sign in to comment.