[Python-checkins] r52126 - python/branches/release25-maint/Lib/email/utils.py
barry.warsaw
python-checkins at python.org
Wed Oct 4 03:28:44 CEST 2006
Author: barry.warsaw
Date: Wed Oct 4 03:28:43 2006
New Revision: 52126
Modified:
python/branches/release25-maint/Lib/email/utils.py
Log:
decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).
Modified: python/branches/release25-maint/Lib/email/utils.py
==============================================================================
--- python/branches/release25-maint/Lib/email/utils.py (original)
+++ python/branches/release25-maint/Lib/email/utils.py Wed Oct 4 03:28:43 2006
@@ -235,10 +235,6 @@
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
More information about the Python-checkins
mailing list