diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-06-22 12:26:52 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-06-22 12:26:52 (GMT) |
commit | 7104458c366895667115066383290d687b8a927c (patch) | |
tree | 5f471bb4e3be638607d571e8bb96734b5054fb4c /Objects | |
parent | 93b30b5b821d2719b5903024b461ec54e3658145 (diff) | |
download | cpython-7104458c366895667115066383290d687b8a927c.zip cpython-7104458c366895667115066383290d687b8a927c.tar.gz cpython-7104458c366895667115066383290d687b8a927c.tar.bz2 |
Change float.__getformat__() to return a unicode string.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/floatobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index b996863..4d5d19e 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -899,11 +899,11 @@ float_getformat(PyTypeObject *v, PyObject* arg) switch (r) { case unknown_format: - return PyString_FromString("unknown"); + return PyUnicode_FromString("unknown"); case ieee_little_endian_format: - return PyString_FromString("IEEE, little-endian"); + return PyUnicode_FromString("IEEE, little-endian"); case ieee_big_endian_format: - return PyString_FromString("IEEE, big-endian"); + return PyUnicode_FromString("IEEE, big-endian"); default: Py_FatalError("insane float_format or double_format"); return NULL; |