Pycodestyle fixes

This commit is contained in:
Garret Wassermann 2020-07-27 20:49:31 -04:00
parent 7eae003e5d
commit 03ab0eb438

View File

@ -309,10 +309,6 @@ def decodeUnknown(charset, string):
def decode_mail_headers(string):
decoded = email.header.decode_header(string) if six.PY3 else email.header.decode_header(string.encode('utf-8'))
return email.utils.getaddresses(decoded)
#if six.PY2:
#return u' '.join([unicode(msg, charset or 'utf-8') for msg, charset in decoded])
#elif six.PY3:
#return u' '.join([str(msg, encoding=charset, errors='replace') if charset else str(msg) for msg, charset in decoded])
def ticket_from_message(message, queue, logger):