Mercurial > cpython-lru_cache-weakref
diff Python/Python-ast.c @ 73700:470f7d7c57ce 3.2
Issue #13436: commit regenerated Python-ast.c
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Tue, 22 Nov 2011 21:52:30 +0100 |
| parents | c8b6d4417274 |
| children | 53cc2668d54f |
line wrap: on
line diff
--- a/Python/Python-ast.c Tue Nov 22 21:51:55 2011 +0100 +++ b/Python/Python-ast.c Tue Nov 22 21:52:30 2011 +0100 @@ -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; }
