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:
Barry Warsaw 2006-10-04 01:28:43 +00:00
parent 33bb6102ec
commit a027bac30a
1 changed files with 0 additions and 4 deletions

View File

@ -235,10 +235,6 @@ def decode_rfc2231(s):
parts = s.split(TICK, 2) parts = s.split(TICK, 2)
if len(parts) <= 2: if len(parts) <= 2:
return None, None, s return None, None, s
if len(parts) > 3:
charset, language = parts[:2]
s = TICK.join(parts[2:])
return charset, language, s
return parts return parts