diff options
Diffstat (limited to 'Python/Python-ast.c')
| -rw-r--r-- | Python/Python-ast.c | 6 | 
1 files changed, 1 insertions, 5 deletions
| diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 3cfb8a8..8a101cf 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -690,11 +690,7 @@ static int obj2ast_int(PyObject* obj, int* out, PyArena* arena)  {      int i;      if (!PyLong_Check(obj)) { -        PyObject *s = PyObject_Repr(obj); -        if (s == NULL) return 1; -        PyErr_Format(PyExc_ValueError, "invalid integer value: %.400s", -                     PyBytes_AS_STRING(s)); -        Py_DECREF(s); +        PyErr_Format(PyExc_ValueError, "invalid integer value: %R", obj);          return 1;      } | 
