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 eb8c0a8 commit d9b2e2eCopy full SHA for d9b2e2e
1 file changed
Lib/email/utils.py
@@ -417,7 +417,8 @@ def decode_params(params):
417
for name, continuations in rfc2231_params.items():
418
value = []
419
extended = False
420
- # Sort by number, treating None as 0 if there is no 0, ignore it if there is already a 0.
+ # Sort by number, treating None as 0 if there is no 0,
421
+ # and ignore it if there is already a 0.
422
has_zero = any(x[0] == 0 for x in continuations)
423
if has_zero:
424
continuations = [x for x in continuations if x[0] is not None]
0 commit comments