From: Barry Warsaw Date: Wed, 4 Oct 2006 02:05:15 +0000 (+0000) Subject: decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to X-Git-Tag: v2.4.4c1~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e346a7324da8678aa690eb697f1166b106c08df4;p=thirdparty%2FPython%2Fcpython.git decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to test for parts > 3 when we use .split(..., 2). --- diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 8c1e69e3336b..ff2cf6c5ecbe 100644 --- a/Lib/email/Utils.py +++ b/Lib/email/Utils.py @@ -220,10 +220,6 @@ def decode_rfc2231(s): parts = s.split(TICK, 2) if len(parts) <= 2: return None, None, urllib.unquote(s) - if len(parts) > 3: - charset, language = pars[:2] - s = TICK.join(parts[2:]) - return charset, language, s return parts