diff options
author | Just van Rossum <just@letterror.com> | 2004-10-26 10:11:00 +0000 |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2004-10-26 10:11:00 +0000 |
commit | 8b8decea21679ffd9cc7756ab439e1fca958188b (patch) | |
tree | 28dd4d1f3a1685c4c8dce4cca9125adf6cc8242e /Lib/plat-mac | |
parent | Patch #1044395: Allow configure option --enable-shared in FreeBSD. (diff) | |
download | cpython-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.py | 1 |
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("&", "&") # escape '&' text = text.replace("<", "<") # escape '<' + text = text.replace(">", ">") # escape '>' text = _controlStripper.sub("?", text) # replace control chars with '?' return text.encode("utf-8") # encode as UTF-8 |