Skip to content

Commit f22b14a

Browse files
committed
Fix really weird encoding issue with Python 2.6
- Legacy-Id: 5150
1 parent 819e80f commit f22b14a

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/sync/iana.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def update_history_with_changes(changes, send_email=True):
201201

202202

203203
def parse_review_email(text):
204-
msg = email.message_from_string(text)
204+
msg = email.message_from_string(text.encode("utf-8"))
205205

206206
# doc
207207
doc_name = ""

ietf/sync/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ def test_iana_review_mail(self):
127127
msg = """From: "%(person)s via RT" <drafts-lastcall@iana.org>
128128
Date: Thu, 10 May 2012 12:00:00 +0000
129129
Subject: [IANA #12345] Last Call: <%(draft)s-%(rev)s.txt> (Long text) to Informational RFC
130+
130131
(BEGIN IANA LAST CALL COMMENTS)
131132
132133
IESG:

0 commit comments

Comments
 (0)