commit | 5e8f8104116edfcbfee2690a58391830bd9883ae | [log] [tgz] |
---|---|---|
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Tue Nov 22 21:52:30 2011 +0100 |
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | Tue Nov 22 21:52:30 2011 +0100 |
tree | 1a3b292251ce4c7b43b28a9283705a15f66eed55 | |
parent | 58e8761da6d11653288b76d2dec6417000a20e74 [diff] |
Issue #13436: commit regenerated Python-ast.c
diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 89c07cd..a276b6c 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c
@@ -622,11 +622,7 @@ { 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; }