aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJust van Rossum <just@letterror.com>2004-10-26 10:11:00 +0000
committerJust van Rossum <just@letterror.com>2004-10-26 10:11:00 +0000
commit8b8decea21679ffd9cc7756ab439e1fca958188b (patch)
tree28dd4d1f3a1685c4c8dce4cca9125adf6cc8242e /Lib/plat-mac
parentPatch #1044395: Allow configure option --enable-shared in FreeBSD. (diff)
downloadcpython-8b8decea21679ffd9cc7756ab439e1fca958188b.tar.gz
cpython-8b8decea21679ffd9cc7756ab439e1fca958188b.tar.bz2
cpython-8b8decea21679ffd9cc7756ab439e1fca958188b.zip
also escape '>', to closer match Apple's plist output
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/plistlib.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py
index 08ffb17565c..ffe33e9ea95 100644
--- a/Lib/plat-mac/plistlib.py
+++ b/Lib/plat-mac/plistlib.py
@@ -208,6 +208,7 @@ def _escapeAndEncode(text):
text = text.replace("\r", "\n") # convert Mac line endings
text = text.replace("&", "&amp;") # 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