Skip to content
Snippets Groups Projects
Unverified Commit 81b9d9dd authored by Jakob Weigert's avatar Jakob Weigert Committed by GitHub
Browse files

Fix typo in error message in plistlib (GH-97540)

parent 575a253b
Branches
Tags
No related merge requests found
...@@ -152,7 +152,7 @@ def _date_to_string(d): ...@@ -152,7 +152,7 @@ def _date_to_string(d):
def _escape(text): def _escape(text):
m = _controlCharPat.search(text) m = _controlCharPat.search(text)
if m is not None: if m is not None:
raise ValueError("strings can't contains control characters; " raise ValueError("strings can't contain control characters; "
"use bytes instead") "use bytes instead")
text = text.replace("\r\n", "\n") # convert DOS line endings text = text.replace("\r\n", "\n") # convert DOS line endings
text = text.replace("\r", "\n") # convert Mac line endings text = text.replace("\r", "\n") # convert Mac line endings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment