8000 Fix typo in error message in plistlib (GH-97540) · python/cpython@7440874 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7440874

Browse files
Fix typo in error message in plistlib (GH-97540)
(cherry picked from commit 81b9d9d) Co-authored-by: Jakob Weigert <jakobjw@users.noreply.github.com>
1 parent b8bc11e commit 7440874

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)
0