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:
Miss Islington (bot) 2022-09-28 11:32:59 -07:00 committed by GitHub
parent 13f23e013d
commit 3d8dfb339b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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