[Python-checkins] python/dist/src/Lib/plat-mac plistlib.py, 1.13, 1.14

jvr at users.sourceforge.net jvr at users.sourceforge.net
Tue Oct 26 12:11:09 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/plat-mac
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30919
Modified Files:
	plistlib.py 
Log Message:
also escape '>', to closer match Apple's plist output
Index: plistlib.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/plat-mac/plistlib.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- plistlib.py	26 Oct 2004 07:38:16 -0000	1.13
+++ plistlib.py	26 Oct 2004 10:11:00 -0000	1.14
@@ -208,6 +208,7 @@
 text = text.replace("\r", "\n") # convert Mac line endings
 text = text.replace("&", "&") # escape '&'
 text = text.replace("<", "&lt;") # escape '<'
+ text = text.replace(">", "&gt;") # escape '>'
 text = _controlStripper.sub("?", text) # replace control chars with '?'
 return text.encode("utf-8") # encode as UTF-8
 


More information about the Python-checkins mailing list

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