summaryrefslogtreecommitdiffstats
path: root/Objects/floatobject.c
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-05-31 15:51:35 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-05-31 15:51:35 (GMT)
commit7696ed7b926dd73700ff9972d7a47beb7ec13191 (patch)
tree3e1a8bcb4d276591fcb62b40e26becd0784e5958 /Objects/floatobject.c
parent346737fc193c9a2e7033519d9767132bc0c9312b (diff)
downloadcpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.zip
cpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.tar.gz
cpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.tar.bz2
Change float.__str__() and complex.__str__() to return
unicode objects.
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 679e93e..b996863 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -310,7 +310,7 @@ float_str(PyFloatObject *v)
{
char buf[100];
format_float(buf, sizeof(buf), v, PREC_STR);
- return PyString_FromString(buf);
+ return PyUnicode_FromString(buf);
}
/* Comparison is pretty much a nightmare. When comparing float to float,