diff options
author | Barry Warsaw <barry@python.org> | 2006-10-04 02:06:36 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2006-10-04 02:06:36 (GMT) |
commit | 1e3c3b15df64a8ca083f63af7884ce60bf4e9c16 (patch) | |
tree | 73696b1b0371a958ae695af60e2b5203d4476fff /Lib/email | |
parent | 373d90b365bb49e399329753fb8e6eee5d3d3713 (diff) | |
download | cpython-1e3c3b15df64a8ca083f63af7884ce60bf4e9c16.zip cpython-1e3c3b15df64a8ca083f63af7884ce60bf4e9c16.tar.gz cpython-1e3c3b15df64a8ca083f63af7884ce60bf4e9c16.tar.bz2 |
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).
Diffstat (limited to 'Lib/email')
-rw-r--r-- | Lib/email/utils.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/Lib/email/utils.py b/Lib/email/utils.py index 26ebb0e..ee952d3 100644 --- a/Lib/email/utils.py +++ b/Lib/email/utils.py @@ -235,10 +235,6 @@ def decode_rfc2231(s): parts = s.split(TICK, 2) if len(parts) <= 2: return None, None, s - if len(parts) > 3: - charset, language = parts[:2] - s = TICK.join(parts[2:]) - return charset, language, s return parts |