[Python-checkins] bpo-2091: Fix typo in exception message (GH-12987)

Berker Peksag webhook-mailer at python.org
Sat Apr 27 16:39:11 EDT 2019


https://github.com/python/cpython/commit/f5972cc0c9a8e3315207e2d67534f330d619af4e
commit: f5972cc0c9a8e3315207e2d67534f330d619af4e
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2019年04月27日T23:39:06+03:00
summary:
bpo-2091: Fix typo in exception message (GH-12987)
(cherry picked from commit 21a9ba1992775b5a833da28bfa0a9f028d1b6761)
Co-authored-by: Berker Peksag <berker.peksag at gmail.com>
files:
M Modules/_io/_iomodule.c
diff --git a/Modules/_io/_iomodule.c b/Modules/_io/_iomodule.c
index 0d8a638f40cf..cba4732e370d 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,


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /