We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f345170 commit c95404fCopy full SHA for c95404f
Lib/email/_header_value_parser.py
@@ -70,7 +70,6 @@
70
import re
71
import urllib # For urllib.parse.unquote
72
from string import hexdigits
73
-from collections import OrderedDict
74
from operator import itemgetter
75
from email import _encoded_words as _ew
76
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
# output them in the order that we first see a given name, which gives
722
# us a stable __str__.
723
- params = OrderedDict()
+ params = {} # Using order preserving dict from Python 3.7+
724
for token in self:
725
if not token.token_type.endswith('parameter'):
726
continue
0 commit comments