diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/complexobject.c | 2 | ||||
-rw-r--r-- | Objects/floatobject.c | 2 |
2 files changed, 2 insertions, 2 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 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, |