]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
authorBarry Warsaw <barry@python.org>
Wed, 4 Oct 2006 02:05:15 +0000 (02:05 +0000)
committerBarry Warsaw <barry@python.org>
Wed, 4 Oct 2006 02:05:15 +0000 (02:05 +0000)
test for parts > 3 when we use .split(..., 2).

Lib/email/Utils.py

index 8c1e69e3336b4797bf922c95da48ac1404c89fd2..ff2cf6c5ecbe7f1f0c2f48aa3f9dd77c49093d86 100644 (file)
@@ -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