diff options
author | Barry Warsaw <barry@python.org> | 2006-10-04 01:28:43 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2006-10-04 01:28:43 +0000 |
commit | a027bac30aef8eeb129a9173dfc1c4dfedc44993 (patch) | |
tree | 8556bffffb5b6a08264b84c25cef2701b9b3f097 /Lib/email/utils.py | |
parent | 33bb6102ec7f4734b10c54b13eb14dd4352d7bae (diff) | |
download | cpython-git-a027bac30aef8eeb129a9173dfc1c4dfedc44993.tar.gz |
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/utils.py')
-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 26ebb0e489..ee952d392e 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 |