diff options
| author | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 2007-06-18 18:26:36 +0000 |
| commit | c43e79f3c87ebf19fec2e481068bf48262096716 (patch) | |
| tree | 06558df755dbef762df2f222a89272d053b19f1d /Modules | |
| parent | 7eaf8223a03a6b11203d750284b35d8a5f27b4f0 (diff) | |
| download | cpython-git-c43e79f3c87ebf19fec2e481068bf48262096716.tar.gz | |
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')
| -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 660402f0c7..76b47e588b 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[] = { |
