From 2cf1a32a10712b985ec5d1edd3204d9e48566f5f Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Thu, 10 May 2018 01:42:09 -0400 Subject: [PATCH] Fix deprecated escape sequence warning for Py3.7, ignore W503,504 --- .travis.yml | 2 +- helpdesk/management/commands/get_email.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8827ddbb..06a155b6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ install: - pip install -q -r requirements-testing.txt before_script: - - "pycodestyle --exclude=migrations --ignore=E501 helpdesk" + - "pycodestyle --exclude=migrations --ignore=E501,W503,W504 helpdesk" script: - coverage run --source='.' quicktest.py helpdesk diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index f9fb7392..5ae13079 100755 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -332,7 +332,7 @@ def ticket_from_message(message, queue, logger): return False return True - matchobj = re.match(r".*\[" + queue.slug + "-(?P\d+)\]", subject) + matchobj = re.match(r".*\[" + queue.slug + r"-(?P\d+)\]", subject) if matchobj: # This is a reply or forward. ticket = matchobj.group('id')