You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2020/08/29 11:52:34 UTC

[incubator-ponymail] branch master updated: Avoid lint warning by using raw string

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.git


The following commit(s) were added to refs/heads/master by this push:
     new 131513f  Avoid lint warning by using raw string
131513f is described below

commit 131513f653698166ed83dcde02fef1a06113cbc8
Author: Sebb <se...@apache.org>
AuthorDate: Sat Aug 29 12:52:24 2020 +0100

    Avoid lint warning by using raw string
---
 tools/import-mbox.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/import-mbox.py b/tools/import-mbox.py
index 5ce4e81..28c0363 100755
--- a/tools/import-mbox.py
+++ b/tools/import-mbox.py
@@ -571,8 +571,8 @@ elif re.match(r"imaps?://", source):
     results = imap4.uid('fetch', uids, '(BODY[HEADER.FIELDS (MESSAGE-ID)])')
 
     mail = {}
-    uid_re = re.compile(b'^\d+ \(UID (\d+) BODY\[')
-    mid_re = re.compile(b'^Message-ID:\s*(.*?)\s*$', re.I)
+    uid_re = re.compile(r'^\d+ \(UID (\d+) BODY\[')
+    mid_re = re.compile(r'^Message-ID:\s*(.*?)\s*$', re.I)
     uid = None
     for result in results[1]:
         for line in result: