[Python-checkins] python/dist/src/Lib/email Utils.py,1.24,1.25
bwarsaw at users.sourceforge.net
bwarsaw at users.sourceforge.net
Mon Aug 18 21:49:37 EDT 2003
Update of /cvsroot/python/python/dist/src/Lib/email
In directory sc8-pr-cvs1:/tmp/cvs-serv12887
Modified Files:
Utils.py
Log Message:
decode_rfc2231(): We need to urllib.unquote() the value even if the
charset and language fields are not present, e.g. as in:
title*0="This%20is%20encoded"
Index: Utils.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/email/Utils.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** Utils.py 10 Mar 2003 19:20:18 -0000 1.24
--- Utils.py 19 Aug 2003 03:49:34 -0000 1.25
***************
*** 281,285 ****
parts = s.split("'", 2)
if len(parts) == 1:
! return None, None, s
charset, language, s = parts
return charset, language, urllib.unquote(s)
--- 281,285 ----
parts = s.split("'", 2)
if len(parts) == 1:
! return None, None, urllib.unquote(s)
charset, language, s = parts
return charset, language, urllib.unquote(s)
More information about the Python-checkins
mailing list