]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Fix Python3.6 depreciation warnings
authorDaniel Axtens <dja@axtens.net>
Thu, 25 Jan 2018 02:43:17 +0000 (13:43 +1100)
committerStephen Finucane <stephen@that.guru>
Fri, 26 Jan 2018 21:42:58 +0000 (21:42 +0000)
commitbe1dbab99bf51b9e700102a676ed96fa7c462912
treec685dff304c0cdc5a4ca1a05b369843dff456cf5
parent94dd1d411f6fb484882a97250adb9be0b560aa43
Fix Python3.6 depreciation warnings

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_settings.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:616: 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@axtens.net>
Reviewed-by: Stephen Finucane <stephen@that.guru>
patchwork/tests/test_list.py
patchwork/tests/test_mail_settings.py
patchwork/tests/test_parser.py