Fix really weird encoding issue with Python 2.6
- Legacy-Id: 5150
This commit is contained in:
parent
819e80f033
commit
f22b14a8a4
|
@ -201,7 +201,7 @@ def update_history_with_changes(changes, send_email=True):
|
|||
|
||||
|
||||
def parse_review_email(text):
|
||||
msg = email.message_from_string(text)
|
||||
msg = email.message_from_string(text.encode("utf-8"))
|
||||
|
||||
# doc
|
||||
doc_name = ""
|
||||
|
|
|
@ -127,6 +127,7 @@ class IANASyncTestCase(django.test.TestCase):
|
|||
msg = """From: "%(person)s via RT" <drafts-lastcall@iana.org>
|
||||
Date: Thu, 10 May 2012 12:00:00 +0000
|
||||
Subject: [IANA #12345] Last Call: <%(draft)s-%(rev)s.txt> (Long text) to Informational RFC
|
||||
|
||||
(BEGIN IANA LAST CALL COMMENTS)
|
||||
|
||||
IESG:
|
||||
|
|
Loading…
Reference in a new issue