summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/floatobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c
index 83987ba..5fd13bc 100644
--- a/Objects/floatobject.c
+++ b/Objects/floatobject.c
@@ -123,7 +123,7 @@ PyFloat_FromString(PyObject *v, char **pend)
#endif
else if (PyObject_AsCharBuffer(v, &s, &len)) {
PyErr_SetString(PyExc_TypeError,
- "float() needs a string argument");
+ "float() argument must be a string or a number");
return NULL;
}