]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-2091: Fix typo in exception message (GH-12987)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 27 Apr 2019 20:39:06 +0000 (13:39 -0700)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 27 Apr 2019 20:39:06 +0000 (23:39 +0300)
(cherry picked from commit 21a9ba1992775b5a833da28bfa0a9f028d1b6761)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Modules/_io/_iomodule.c

index 0d8a638f40cfa4cf822ad9ccbf6b1d00ab658aad..cba4732e370d1e3c65601921b328e8f53753c680 100644 (file)
@@ -324,7 +324,7 @@ _io_open_impl(PyObject *module, PyObject *file, const char *mode,
     if (universal) {
         if (creating || writing || appending || updating) {
             PyErr_SetString(PyExc_ValueError,
-                            "mode U cannot be combined with x', 'w', 'a', or '+'");
+                            "mode U cannot be combined with 'x', 'w', 'a', or '+'");
             goto error;
         }
         if (PyErr_WarnEx(PyExc_DeprecationWarning,