summaryrefslogtreecommitdiff
path: root/src/mailman/handlers/subject_prefix.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/handlers/subject_prefix.py')
-rw-r--r--src/mailman/handlers/subject_prefix.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/handlers/subject_prefix.py b/src/mailman/handlers/subject_prefix.py
index ff728d92e..7bb1a3e5d 100644
--- a/src/mailman/handlers/subject_prefix.py
+++ b/src/mailman/handlers/subject_prefix.py
@@ -21,9 +21,9 @@ import re
from contextlib import suppress
from email.header import Header, decode_header, make_header
-from mailman import public
from mailman.core.i18n import _
from mailman.interfaces.handler import IHandler
+from public import public
from zope.interface import implementer
@@ -162,7 +162,7 @@ class SubjectPrefix:
if p.search(prefix, 1):
# The prefix has number, so we should search prefix w/number in
# subject. Also, force new style.
- prefix_pattern = p.sub(r'\s*\d+\s*', prefix_pattern)
+ prefix_pattern = p.sub(r'\\s*\\d+\\s*', prefix_pattern)
# Substitute %d in prefix with post_id
with suppress(TypeError):
prefix = prefix % mlist.post_id