Stupid save all didn't safe it all ...

This commit is contained in:
Christian Heimes 2007-12-10 15:39:09 +00:00
parent 7c7f6afa92
commit 61927fc049
1 changed files with 6 additions and 5 deletions

View File

@ -214,13 +214,14 @@ msvcrt_putwch(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "u#:putwch", &ch, &size))
return NULL;
if (size == 1)
_putwch(*ch);
Py_RETURN_NONE;
else {
if (size == 0) {
PyErr_SetString(PyExc_ValueError,
"Expected unicode of length 1");
"Expected unicode string of length 1");
return NULL;
}
_putwch(*ch);
Py_RETURN_NONE;
}
static PyObject *