diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-31 15:51:35 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-31 15:51:35 (GMT) |
commit | 7696ed7b926dd73700ff9972d7a47beb7ec13191 (patch) | |
tree | 3e1a8bcb4d276591fcb62b40e26becd0784e5958 /Objects/complexobject.c | |
parent | 346737fc193c9a2e7033519d9767132bc0c9312b (diff) | |
download | cpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.zip cpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.tar.gz cpython-7696ed7b926dd73700ff9972d7a47beb7ec13191.tar.bz2 |
Change float.__str__() and complex.__str__() to return
unicode objects.
Diffstat (limited to 'Objects/complexobject.c')
-rw-r--r-- | Objects/complexobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c index 0d4b755..ed2e475 100644 --- a/Objects/complexobject.c +++ b/Objects/complexobject.c @@ -350,7 +350,7 @@ complex_str(PyComplexObject *v) { char buf[100]; complex_to_buf(buf, sizeof(buf), v, PREC_STR); - return PyString_FromString(buf); + return PyUnicode_FromString(buf); } static long |