@@ -70,7 +70,6 @@ |
|
|
70 |
70 |
import re |
71 |
71 |
import urllib # For urllib.parse.unquote |
72 |
72 |
from string import hexdigits |
73 |
|
-from collections import OrderedDict |
74 |
73 |
from operator import itemgetter |
75 |
74 |
from email import _encoded_words as _ew |
76 |
75 |
from email import errors |
@@ -720,7 +719,7 @@ def params(self): |
|
|
720 |
719 |
# to assume the RFC 2231 pieces can come in any order. However, we |
721 |
720 |
# output them in the order that we first see a given name, which gives |
722 |
721 |
# us a stable __str__. |
723 |
|
-params = OrderedDict() |
|
722 |
+params = {} # Using order preserving dict from Python 3.7+ |
724 |
723 |
for token in self: |
725 |
724 |
if not token.token_type.endswith('parameter'): |
726 |
725 |
continue |