decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).
This commit is contained in:
parent
33bb6102ec
commit
a027bac30a
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue