From e346a7324da8678aa690eb697f1166b106c08df4 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Wed, 4 Oct 2006 02:05:15 +0000 Subject: decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to test for parts > 3 when we use .split(..., 2). --- Lib/email/Utils.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Lib/email/Utils.py b/Lib/email/Utils.py index 8c1e69e..ff2cf6c 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 -- cgit v0.12