[Python-checkins] r52128 - python/trunk/Lib/email/utils.py

barry.warsaw python-checkins at python.org
Wed Oct 4 04:06:36 CEST 2006


Author: barry.warsaw
Date: Wed Oct  4 04:06:36 2006
New Revision: 52128

Modified:
   python/trunk/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/trunk/Lib/email/utils.py
==============================================================================
--- python/trunk/Lib/email/utils.py	(original)
+++ python/trunk/Lib/email/utils.py	Wed Oct  4 04:06:36 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