From c11e360f505010acbe29a4513d4d6295657ae38f Mon Sep 17 00:00:00 2001 From: Pawel M Date: Thu, 8 Dec 2016 15:17:14 +0100 Subject: [PATCH] PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg)) ... clear --- helpdesk/management/commands/get_email.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/helpdesk/management/commands/get_email.py b/helpdesk/management/commands/get_email.py index d9a1969f..8d332dc6 100644 --- a/helpdesk/management/commands/get_email.py +++ b/helpdesk/management/commands/get_email.py @@ -268,9 +268,6 @@ def ticket_from_message(message, queue, logger): if six.PY2: message = email.message_from_string(msg) elif six.PY3: - print(type(msg)) - print(msg) - print(isinstance(msg, bytes)) if isinstance(msg, bytes): message = email.message_from_bytes(msg) else: