From 3d8dfb339b0c0696c5efd4effa9a6b1e34d814e1 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 28 Sep 2022 11:32:59 -0700 Subject: Fix typo in error message in plistlib (GH-97540) (cherry picked from commit 81b9d9ddc20837ecd19f41b764e3f33d8ae805d5) Co-authored-by: Jakob Weigert --- Lib/plistlib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/plistlib.py b/Lib/plistlib.py index 2eeebe4..bc8e4c8 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 -- cgit v0.12