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
1 changed files with 1 additions and 1 deletions

View 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,