mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
bpo-2091: Fix typo in exception message (GH-12987)
This commit is contained in:
parent
4d8c8c0ad6
commit
21a9ba1992
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user