From 8b8decea21679ffd9cc7756ab439e1fca958188b Mon Sep 17 00:00:00 2001 From: Just van Rossum Date: Tue, 26 Oct 2004 10:11:00 +0000 Subject: [PATCH] also escape '>', to closer match Apple's plist output --- Lib/plat-mac/plistlib.py | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.1