This is an automated email from the ASF dual-hosted git repository.
sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git
The following commit(s) were added to refs/heads/master by this push:
new 9aeb9ca Use raw strings for RE
9aeb9ca is described below
commit 9aeb9ca60f86005edf7ce1ed9ad09a164e2bd5b1
Author: Sebb <[email protected]>
AuthorDate: Fri May 14 17:21:33 2021 +0100
Use raw strings for RE
---
tools/plugins/generators_old.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/plugins/generators_old.py b/tools/plugins/generators_old.py
index a48663c..393eb5d 100644
--- a/tools/plugins/generators_old.py
+++ b/tools/plugins/generators_old.py
@@ -123,7 +123,7 @@ def cluster(msg, body, lid, attachments, _raw_msg):
xbody = body if type(body) is bytes else body.encode('utf-8',
errors='ignore')
# Crop out any trailing whitespace in body
- xbody = re.sub(b"\s+$", b"", xbody)
+ xbody = re.sub(r"\s+$", b"", xbody)
# Use Message-Id (or '' if missing)
xbody += bytes(msg.get('message-id', ''), encoding='ascii')