mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-01-19 04:19:54 +01:00
Pycodestyle fixes
This commit is contained in:
parent
7eae003e5d
commit
03ab0eb438
@ -309,10 +309,6 @@ def decodeUnknown(charset, string):
|
|||||||
def decode_mail_headers(string):
|
def decode_mail_headers(string):
|
||||||
decoded = email.header.decode_header(string) if six.PY3 else email.header.decode_header(string.encode('utf-8'))
|
decoded = email.header.decode_header(string) if six.PY3 else email.header.decode_header(string.encode('utf-8'))
|
||||||
return email.utils.getaddresses(decoded)
|
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):
|
def ticket_from_message(message, queue, logger):
|
||||||
|
Loading…
Reference in New Issue
Block a user