Skip to content

Commit 5e8f810

Browse files
committed
Issue #13436: commit regenerated Python-ast.c
1 parent 58e8761 commit 5e8f810

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Python/Python-ast.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -622,11 +622,7 @@ static int obj2ast_int(PyObject* obj, int* out, PyArena* arena)
622622
{
623623
int i;
624624
if (!PyLong_Check(obj)) {
625-
PyObject *s = PyObject_Repr(obj);
626-
if (s == NULL) return 1;
627-
PyErr_Format(PyExc_ValueError, "invalid integer value: %.400s",
628-
PyBytes_AS_STRING(s));
629-
Py_DECREF(s);
625+
PyErr_Format(PyExc_ValueError, "invalid integer value: %R", obj);
630626
return 1;
631627
}
632628

0 commit comments

Comments
 (0)