bpo-2091: Fix typo in exception message (GH-12987)

This commit is contained in:
Berker Peksag 2019-04-27 22:40:45 +03:00 committed by GitHub
parent 4d8c8c0ad6
commit 21a9ba1992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -324,7 +324,7 @@ _io_open_impl(PyObject *module, PyObject *file, const char *mode,
if (universal) { if (universal) {
if (creating || writing || appending || updating) { if (creating || writing || appending || updating) {
PyErr_SetString(PyExc_ValueError, 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; goto error;
} }
if (PyErr_WarnEx(PyExc_DeprecationWarning, if (PyErr_WarnEx(PyExc_DeprecationWarning,