commit | c43e79f3c87ebf19fec2e481068bf48262096716 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Mon Jun 18 18:26:36 2007 +0000 |
committer | Guido van Rossum <guido@python.org> | Mon Jun 18 18:26:36 2007 +0000 |
tree | 06558df755dbef762df2f222a89272d053b19f1d | |
parent | 7eaf8223a03a6b11203d750284b35d8a5f27b4f0 [diff] |
Fix a buch of shallow test failures. Note: in test_fileinput.py, two tests are disabled until I figure out how to replace these.
diff --git a/Modules/_fileio.c b/Modules/_fileio.c index 660402f..76b47e5 100644 --- a/Modules/_fileio.c +++ b/Modules/_fileio.c
@@ -705,7 +705,7 @@ static PyObject * get_mode(PyFileIOObject *self, void *closure) { - return PyString_FromString(mode_string(self)); + return PyUnicode_FromString(mode_string(self)); } static PyGetSetDef fileio_getsetlist[] = {