From: Amaury Forgeot d'Arc Date: Tue, 22 Nov 2011 20:52:30 +0000 (+0100) Subject: Issue #13436: commit regenerated Python-ast.c X-Git-Tag: v3.2.3rc1~369 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5e8f8104116edfcbfee2690a58391830bd9883ae;p=thirdparty%2FPython%2Fcpython.git Issue #13436: commit regenerated Python-ast.c --- diff --git a/Python/Python-ast.c b/Python/Python-ast.c index 89c07cd602d2..a276b6cf21b8 100644 --- a/Python/Python-ast.c +++ b/Python/Python-ast.c @@ -622,11 +622,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; }