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/08/17 23:49:45 UTC

[incubator-ponymail-foal] branch master updated: fix mypy warnings

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 d23f6c4  fix mypy warnings
d23f6c4 is described below

commit d23f6c49649b65badcf24cbfcda60e0c14094e97
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Tue Aug 18 01:49:31 2020 +0200

    fix mypy warnings
---
 tools/archiver.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/archiver.py b/tools/archiver.py
index ecea544..c1dbf6e 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -162,7 +162,7 @@ def message_attachments(msg: email.message.Message) -> typing.Tuple[list, dict]:
 
 
 class Body:
-    def __init__(self, part: email.message.MIMEPart):
+    def __init__(self, part: email.message.Message):
         self.content_type = part.get_content_type()
         self.charsets = set([part.get_charset()])  # Part's charset
         self.charsets.update(part.get_charsets())  # Parent charsets as fallback