You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2020/09/04 13:44:39 UTC

[incubator-ponymail-foal] branch master updated: make mypy happy again

This is an automated email from the ASF dual-hosted git repository.

humbedooh 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 6591d0d  make mypy happy again
6591d0d is described below

commit 6591d0df8b619114486a8a961164cfc8bfd79d36
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Fri Sep 4 15:44:27 2020 +0200

    make mypy happy again
---
 tools/archiver.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index 6a64775..cfa3c3a 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -400,7 +400,7 @@ class Archiver(object):  # N.B. Also used by import-mbox.py
 
         if body is not None or attachments:
             pmid = mid
-            all_mids = set()  # Use a set to avoid duplicates
+            id_set = set()  # Use a set to avoid duplicates
             for generator in self.generator.split(" "):
                 if generator:
                     try:
@@ -416,7 +416,7 @@ class Archiver(object):  # N.B. Also used by import-mbox.py
                                 msg_metadata.get("message-id", "?").strip(),
                             )
                         mid = pmid
-                    all_mids.add(mid)
+                    id_set.add(mid)
 
             if "in-reply-to" in msg_metadata:
                 try:
@@ -429,7 +429,7 @@ class Archiver(object):  # N.B. Also used by import-mbox.py
                         irt = irt.strip()
                 except ValueError:
                     irt = ""
-            all_mids = list(all_mids)  # Convert back to list
+            all_mids = list(id_set)  # Convert to list
             document_id = all_mids[0]
             output_json = {
                 "from_raw": msg_metadata["from"],