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

This commit is contained in:
Jakob Weigert 2022-09-28 19:46:09 +02:00 committed by GitHub
parent 575a253b5c
commit 81b9d9ddc2
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