]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo in error message in plistlib (GH-97540)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 28 Sep 2022 18:32:59 +0000 (11:32 -0700)
committerGitHub <noreply@github.com>
Wed, 28 Sep 2022 18:32:59 +0000 (11:32 -0700)
(cherry picked from commit 81b9d9ddc20837ecd19f41b764e3f33d8ae805d5)

Co-authored-by: Jakob Weigert <jakobjw@users.noreply.github.com>
Lib/plistlib.py

index 2eeebe4c9a4244bc30dd411fa6f428afd37cc5e7..bc8e4c8a7d70c0c2e4004eacbd5e65bd98b7396b 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