Commit 981f0a07 authored by Jérome Perrin's avatar Jérome Perrin

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

parent 041a7394
......@@ -51,7 +51,7 @@ def decode_email(file_):
msg = email.message_from_string(file_.decode())
# Back up original file
theMail['__original__'] = file_
for key, value in six.iteritems(msg):
for key, value in msg.items():
decoded_value_list = decode_header(value)
new_value = make_header(decoded_value_list)
if six.PY2:
......
......@@ -175,7 +175,7 @@ class TestERP5Credential(ERP5TypeTestCase):
msg = email.message_from_string(file_.decode())
# Back up original file
theMail['__original__'] = file_
for key, value in six.iteritems(msg):
for key, value in msg.items():
decoded_value_list = decode_header(value)
new_value = make_header(decoded_value_list)
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