mirror of https://github.com/python/cpython
Stupid save all didn't safe it all ...
This commit is contained in:
parent
7c7f6afa92
commit
61927fc049
|
@ -214,13 +214,14 @@ msvcrt_putwch(PyObject *self, PyObject *args)
|
||||||
if (!PyArg_ParseTuple(args, "u#:putwch", &ch, &size))
|
if (!PyArg_ParseTuple(args, "u#:putwch", &ch, &size))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (size == 1)
|
if (size == 0) {
|
||||||
|
PyErr_SetString(PyExc_ValueError,
|
||||||
|
"Expected unicode string of length 1");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
_putwch(*ch);
|
_putwch(*ch);
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
else {
|
|
||||||
PyErr_SetString(PyExc_ValueError,
|
|
||||||
"Expected unicode of length 1");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
Loading…
Reference in New Issue