PY3 get_email support in method ticket_from_message (if message isinstance bytes use email.email_from_bytes(msg) else ..from_string(msg)) ... clear

This commit is contained in:
Pawel M 2016-12-08 15:17:14 +01:00
parent 550ca89415
commit c11e360f50

View File

@ -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: