mirror of https://github.com/python/cpython
Issue #13436: commit regenerated Python-ast.c
This commit is contained in:
parent
58e8761da6
commit
5e8f810411
|
@ -622,11 +622,7 @@ static int obj2ast_int(PyObject* obj, int* out, PyArena* arena)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
if (!PyLong_Check(obj)) {
|
if (!PyLong_Check(obj)) {
|
||||||
PyObject *s = PyObject_Repr(obj);
|
PyErr_Format(PyExc_ValueError, "invalid integer value: %R", obj);
|
||||||
if (s == NULL) return 1;
|
|
||||||
PyErr_Format(PyExc_ValueError, "invalid integer value: %.400s",
|
|
||||||
PyBytes_AS_STRING(s));
|
|
||||||
Py_DECREF(s);
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue