Commit 1e3c3b15 authored by Barry Warsaw's avatar Barry Warsaw

decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to

test for parts > 3 when we use .split(..., 2).
parent 373d90b3
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment