[PATCH 7/7] Fix Python3.6 depreciation warnings

Stephen Finucane stephen at that.guru
Sat Jan 27 08:23:13 AEDT 2018


On Thu, 2018-01-25 at 13:43 +1100, Daniel Axtens wrote:
> We see on Travis and on tox:
> /home/travis/build/daxtens/patchwork/patchwork/tests/test_list.py:79:
> DeprecationWarning: invalid escape sequence \d
>   id_re = re.compile('<tr id="patch_row:(\d+)"')
> /home/travis/build/daxtens/patchwork/patchwork/tests/test_mail_settin
> gs.py:248: DeprecationWarning: invalid escape sequence \s
>   form_re_template = ('<form\s+[^>]*action="%(url)s"[^>]*>'
> /home/travis/build/daxtens/patchwork/patchwork/tests/test_parser.py:6
> 16: DeprecationWarning: invalid escape sequence \
>   '\ No newline at end of file'))
> 
> All of these are easy to fix: just mark them as raw strings.
> 
> Signed-off-by: Daniel Axtens <dja at axtens.net>

Reviewed-by: Stephen Finucane <stephen at that.guru>


More information about the Patchwork mailing list