diff options
author | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 (GMT) |
commit | c43e79f3c87ebf19fec2e481068bf48262096716 (patch) | |
tree | 06558df755dbef762df2f222a89272d053b19f1d /Modules/_fileio.c | |
parent | 7eaf8223a03a6b11203d750284b35d8a5f27b4f0 (diff) | |
download | cpython-c43e79f3c87ebf19fec2e481068bf48262096716.zip cpython-c43e79f3c87ebf19fec2e481068bf48262096716.tar.gz cpython-c43e79f3c87ebf19fec2e481068bf48262096716.tar.bz2 |
Fix a buch of shallow test failures.
Note: in test_fileinput.py, two tests are disabled until I figure out how
to replace these.
Diffstat (limited to 'Modules/_fileio.c')
-rw-r--r-- | Modules/_fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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[] = { |