From: Just van Rossum Date: Tue, 26 Oct 2004 10:11:00 +0000 (+0000) Subject: also escape '>', to closer match Apple's plist output X-Git-Tag: v2.4b2~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b8decea21679ffd9cc7756ab439e1fca958188b;p=python also escape '>', to closer match Apple's plist output --- diff --git a/Lib/plat-mac/plistlib.py b/Lib/plat-mac/plistlib.py index 08ffb17565..ffe33e9ea9 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