mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Fix typo in error message in plistlib (GH-97540)
(cherry picked from commit 81b9d9ddc2
)
Co-authored-by: Jakob Weigert <jakobjw@users.noreply.github.com>
This commit is contained in:
parent
13f23e013d
commit
3d8dfb339b
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