From 26d24b7ff08402a01f77c4208da958f83f55574d Mon Sep 17 00:00:00 2001 From: Andrew Fyfe Date: Mon, 8 Jan 2018 19:42:24 +0000 Subject: [PATCH] remove unrequired assert Testing code that shouldn't have been included with modoboa/modoboa#1330 --- modoboa/lib/email_utils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/modoboa/lib/email_utils.py b/modoboa/lib/email_utils.py index 1a16b6062..3d50269e3 100644 --- a/modoboa/lib/email_utils.py +++ b/modoboa/lib/email_utils.py @@ -84,7 +84,6 @@ class Email(object): def msg(self): if self._msg is None: mail_text = self._fetch_message() - assert isinstance(mail_text, bytes) # python 2 expects str (bytes), python 3 expects str (unicode) mail_text = smart_str(mail_text, errors="replace") self._msg = email.message_from_string(mail_text)