Commit 2f090aa7 authored by Christian Heimes's avatar Christian Heimes

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

parent 4a73f53a
...@@ -214,13 +214,14 @@ msvcrt_putwch(PyObject *self, PyObject *args) ...@@ -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) {
_putwch(*ch);
Py_RETURN_NONE;
else {
PyErr_SetString(PyExc_ValueError, PyErr_SetString(PyExc_ValueError,
"Expected unicode of length 1"); "Expected unicode string of length 1");
return NULL;
} }
_putwch(*ch);
Py_RETURN_NONE;
} }
static PyObject * static PyObject *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment