From: Jakob Weigert Date: Wed, 28 Sep 2022 17:46:09 +0000 (+0200) Subject: Fix typo in error message in plistlib (GH-97540) X-Git-Tag: v3.12.0a1~335 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81b9d9ddc20837ecd19f41b764e3f33d8ae805d5;p=thirdparty%2FPython%2Fcpython.git Fix typo in error message in plistlib (GH-97540) --- diff --git a/Lib/plistlib.py b/Lib/plistlib.py index d03c75dfab97..30f3f673ada5 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