Fix deprecated escape sequence warning for Py3.7, ignore W503,504

This commit is contained in:
Garret Wassermann 2018-05-10 01:42:09 -04:00
parent a361e76999
commit 2cf1a32a10
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ install:
- pip install -q -r requirements-testing.txt - pip install -q -r requirements-testing.txt
before_script: before_script:
- "pycodestyle --exclude=migrations --ignore=E501 helpdesk" - "pycodestyle --exclude=migrations --ignore=E501,W503,W504 helpdesk"
script: script:
- coverage run --source='.' quicktest.py helpdesk - coverage run --source='.' quicktest.py helpdesk

View File

@ -332,7 +332,7 @@ def ticket_from_message(message, queue, logger):
return False return False
return True return True
matchobj = re.match(r".*\[" + queue.slug + "-(?P<id>\d+)\]", subject) matchobj = re.match(r".*\[" + queue.slug + r"-(?P<id>\d+)\]", subject)
if matchobj: if matchobj:
# This is a reply or forward. # This is a reply or forward.
ticket = matchobj.group('id') ticket = matchobj.group('id')