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
commit 0d507b900c347b20f99cda505e58eef58a115e0f Author: Daniel Gruno <[email protected]> AuthorDate: Tue Aug 18 09:22:19 2020 +0200 simplify by using __repr__ --- tools/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/archiver.py b/tools/archiver.py index a238979..32c2597 100755 --- a/tools/archiver.py +++ b/tools/archiver.py @@ -181,8 +181,8 @@ class Body: if not self.string: self.string = contents.decode("utf-8", errors="replace") - def __str__(self): - return self.string or "None" + def __repr__(self): + return self.string def __len__(self): return len(self.string or "")
