mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fix typo in error message in plistlib (GH-97540)
This commit is contained in:
parent
575a253b5c
commit
81b9d9ddc2
1 changed files with 1 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ def _date_to_string(d):
|
|||
def _escape(text):
|
||||
m = _controlCharPat.search(text)
|
||||
if m is not None:
|
||||
raise ValueError("strings can't contains control characters; "
|
||||
raise ValueError("strings can't contain control characters; "
|
||||
"use bytes instead")
|
||||
text = text.replace("\r\n", "\n") # convert DOS line endings
|
||||
text = text.replace("\r", "\n") # convert Mac line endings
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue