diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-04-27 13:39:06 -0700 |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2019-04-27 23:39:06 +0300 |
commit | f5972cc0c9a8e3315207e2d67534f330d619af4e (patch) | |
tree | fb0126777348b37bf5adb8f66c247404aaef24e6 /Modules/_io | |
parent | 5d90954856cc1d999dd5d153b807055fde0d53ea (diff) | |
download | cpython-git-f5972cc0c9a8e3315207e2d67534f330d619af4e.tar.gz |
bpo-2091: Fix typo in exception message (GH-12987)
(cherry picked from commit 21a9ba1992775b5a833da28bfa0a9f028d1b6761)
Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
Diffstat (limited to 'Modules/_io')
-rw-r--r-- | Modules/_io/_iomodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c index 0d8a638f40..cba4732e37 100644 --- a/Modules/_io/_iomodule.c +++ b/Modules/_io/_iomodule.c @@ -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, |