Skip to content

Commit 81b9d9d

Browse files
authored
Fix typo in error message in plistlib (GH-97540)
1 parent 575a253 commit 81b9d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/plistlib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _date_to_string(d):
152152
def _escape(text):
153153
m = _controlCharPat.search(text)
154154
if m is not None:
155-
raise ValueError("strings can't contains control characters; "
155+
raise ValueError("strings can't contain control characters; "
156156
"use bytes instead")
157157
text = text.replace("\r\n", "\n") # convert DOS line endings
158158
text = text.replace("\r", "\n") # convert Mac line endings

0 commit comments

Comments
 (0)