diff options
author | Guido van Rossum <guido@python.org> | 2000-05-09 14:27:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-05-09 14:27:48 (GMT) |
commit | c18a6f466a3caaee835540014768f7d38206053a (patch) | |
tree | 058612e893ff37613de9acdeb8f9a18a50713151 /Objects | |
parent | b8872e61c622e15c68336fcc776e705f904e1e50 (diff) | |
download | cpython-c18a6f466a3caaee835540014768f7d38206053a.zip cpython-c18a6f466a3caaee835540014768f7d38206053a.tar.gz cpython-c18a6f466a3caaee835540014768f7d38206053a.tar.bz2 |
Replace PyErr_BadArgument() error in PyInt_AsLong() with "an integer
is required" (we can't say more because we don't know in which context
it is called).
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/intobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/intobject.c b/Objects/intobject.c index 79435a9..2e8939e 100644 --- a/Objects/intobject.c +++ b/Objects/intobject.c @@ -198,7 +198,7 @@ PyInt_AsLong(op) if (op == NULL || (nb = op->ob_type->tp_as_number) == NULL || nb->nb_int == NULL) { - PyErr_BadArgument(); + PyErr_SetString(PyExc_TypeError, "an integer is required"); return -1; } |