[Python-checkins] r52127 - python/branches/release24-maint/Lib/email/Utils.py

barry.warsaw python-checkins at python.org
Wed Oct 4 04:05:17 CEST 2006


Author: barry.warsaw
Date: Wed Oct 4 04:05:15 2006
New Revision: 52127
Modified:
 python/branches/release24-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/release24-maint/Lib/email/Utils.py
==============================================================================
--- python/branches/release24-maint/Lib/email/Utils.py	(original)
+++ python/branches/release24-maint/Lib/email/Utils.py	Wed Oct 4 04:05:15 2006
@@ -220,10 +220,6 @@
 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
 
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /