summaryrefslogtreecommitdiffstats
path: root/Lib/plistlib.py
diff options
context:
space:
mode:
authorJakob Weigert <jakobjw@users.noreply.github.com>2022-09-28 17:46:09 (GMT)
committerGitHub <noreply@github.com>2022-09-28 17:46:09 (GMT)
commit81b9d9ddc20837ecd19f41b764e3f33d8ae805d5 (patch)
tree0d662c20e5722dd6df39157597a8e88375f1f9e2 /Lib/plistlib.py
parent575a253b5c203e8d2ebfd239ed5a613179f8984f (diff)
downloadcpython-81b9d9ddc20837ecd19f41b764e3f33d8ae805d5.zip
cpython-81b9d9ddc20837ecd19f41b764e3f33d8ae805d5.tar.gz
cpython-81b9d9ddc20837ecd19f41b764e3f33d8ae805d5.tar.bz2
Fix typo in error message in plistlib (GH-97540)
Diffstat (limited to 'Lib/plistlib.py')
-rw-r--r--Lib/plistlib.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/plistlib.py b/Lib/plistlib.py
index d03c75d..30f3f67 100644
--- a/Lib/plistlib.py
+++ b/Lib/plistlib.py
@@ -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