]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in error message in plistlib (GH-97540)
authorJakob Weigert <jakobjw@users.noreply.github.com>
Wed, 28 Sep 2022 17:46:09 +0000 (19:46 +0200)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2022 17:46:09 +0000 (20:46 +0300)
Lib/plistlib.py

index d03c75dfab9756a3213d7a83a9c0654482ed4c35..30f3f673ada57733df6e5f566173f1a948c13d12 100644 (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