summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-12-03 16:51:33 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-12-03 16:51:33 (GMT)
commitf961377e9959fd04a4351316386f15e019e89ebb (patch)
tree2605c3723db2254fd8a17519034250607c9e02fe /Objects
parentb6a6f5f886ed869612e16cd1e29a1190996dc78d (diff)
downloadcpython-f961377e9959fd04a4351316386f15e019e89ebb.zip
cpython-f961377e9959fd04a4351316386f15e019e89ebb.tar.gz
cpython-f961377e9959fd04a4351316386f15e019e89ebb.tar.bz2
#6780: fix complex() constructor TypeError message
Diffstat (limited to 'Objects')
-rw-r--r--Objects/complexobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/complexobject.c b/Objects/complexobject.c
index c47e0d3..5999796 100644
--- a/Objects/complexobject.c
+++ b/Objects/complexobject.c
@@ -783,7 +783,7 @@ complex_subtype_from_string(PyTypeObject *type, PyObject *v)
}
else if (PyObject_AsCharBuffer(v, &s, &len)) {
PyErr_SetString(PyExc_TypeError,
- "complex() arg is not a string");
+ "complex() argument must be a string or a number");
return NULL;
}