Skip to content

Commit eb8c0a8

Browse files
committed
Addressed Comments
1 parent 1a12356 commit eb8c0a8

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/email/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def decode_params(params):
422422
if has_zero:
423423
continuations = [x for x in continuations if x[0] is not None]
424424
else:
425-
continuations = [(0 if x[0] is None else x[0], x[1], x[2]) for x in continuations]
425+
continuations = [(x[0] or 0, x[1], x[2]) for x in continuations]
426426
continuations.sort(key=lambda x: x[0])
427427
# And now append all values in numerical order, converting
428428
# %-encodings for the encoded segments. If any of the
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
:mod:`email`: Fix TypeError in email.utils.decode_params() when sorting RFC
2-
2231 continuations that contain an unnumbered section.
1+
:mod:`email`: Fix :exc:`TypeError` in :func:`email.utils.decode_params`
2+
when sorting :rfc:`2231` continuations that contain an unnumbered section.

0 commit comments

Comments
 (0)