Commit 47430a15 authored by Jérome Perrin's avatar Jérome Perrin

test: don't use six.iteritems() on msg, the only API is .items()

parent 27feaabc
...@@ -51,7 +51,7 @@ def decode_email(file_): ...@@ -51,7 +51,7 @@ def decode_email(file_):
msg = email.message_from_string(file_.decode()) msg = email.message_from_string(file_.decode())
# Back up original file # Back up original file
theMail['__original__'] = file_ theMail['__original__'] = file_
for key, value in six.iteritems(msg): for key, value in msg.items():
decoded_value_list = decode_header(value) decoded_value_list = decode_header(value)
new_value = make_header(decoded_value_list) new_value = make_header(decoded_value_list)
if six.PY2: if six.PY2:
......
...@@ -175,7 +175,7 @@ class TestERP5Credential(ERP5TypeTestCase): ...@@ -175,7 +175,7 @@ class TestERP5Credential(ERP5TypeTestCase):
msg = email.message_from_string(file_.decode()) msg = email.message_from_string(file_.decode())
# Back up original file # Back up original file
theMail['__original__'] = file_ theMail['__original__'] = file_
for key, value in six.iteritems(msg): for key, value in msg.items():
decoded_value_list = decode_header(value) decoded_value_list = decode_header(value)
new_value = make_header(decoded_value_list) new_value = make_header(decoded_value_list)
if six.PY2: if six.PY2:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment