mirror of
https://gitea.mueller.network/extern/django-helpdesk.git
synced 2024-12-26 08:39:08 +01:00
Fix deprecated escape sequence warning for Py3.7, ignore W503,504
This commit is contained in:
parent
a361e76999
commit
2cf1a32a10
@ -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
|
||||||
|
@ -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')
|
||||||
|
Loading…
Reference in New Issue
Block a user