Fix a buch of shallow test failures.

Note: in test_fileinput.py, two tests are disabled until I figure out how
to replace these.
This commit is contained in:
Guido van Rossum 2007-06-18 18:26:36 +00:00
parent 7eaf8223a0
commit c43e79f3c8
4 changed files with 43 additions and 36 deletions

View file

@ -705,7 +705,7 @@ get_closed(PyFileIOObject *self, void *closure)
static PyObject *
get_mode(PyFileIOObject *self, void *closure)
{
return PyString_FromString(mode_string(self));
return PyUnicode_FromString(mode_string(self));
}
static PyGetSetDef fileio_getsetlist[] = {