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/05 07:33:26 UTC
[incubator-ponymail-foal] branch master updated: this part can
safely be removed
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 da683e3 this part can safely be removed
da683e3 is described below
commit da683e3ba24ae557d0e1266a9e51259cdfbf42bb
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Sep 5 09:33:13 2020 +0200
this part can safely be removed
---
tools/archiver.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/tools/archiver.py b/tools/archiver.py
index 45c76d5..f875cc3 100755
--- a/tools/archiver.py
+++ b/tools/archiver.py
@@ -198,8 +198,6 @@ class Body:
self.character_set = "us-ascii"
# If no character encoding, but we find non-ASCII chars, assume bytes were UTF-8
elif len(self.bytes) != len(self.bytes.decode("us-ascii", "ignore")):
- part.set_charset("utf-8")
- self.bytes = part.get_payload(decode=True)
# Set the .string, but not a character set, as we don't know it for sure.
# This is mainly so the older generators won't barf.
self.string = self.bytes.decode("utf-8", "replace")