projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8872e6
)
Replace PyErr_BadArgument() error in PyInt_AsLong() with "an integer
author
Guido van Rossum
<guido@python.org>
Tue, 9 May 2000 14:27:48 +0000
(14:27 +0000)
committer
Guido van Rossum
<guido@python.org>
Tue, 9 May 2000 14:27:48 +0000
(14:27 +0000)
is required" (we can't say more because we don't know in which context
it is called).
Objects/intobject.c
patch
|
blob
|
history
diff --git
a/Objects/intobject.c
b/Objects/intobject.c
index 79435a990a55c0c1a16e6d8a02e509b389af9991..2e8939e65e308acd68471d34da48e0a1acce3b2d 100644
(file)
--- 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;
}