Mercurial > cpython-lru_cache-weakref
diff Python/Python-ast.c @ 73701:53cc2668d54f
Merge branch 3.2
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Tue, 22 Nov 2011 22:02:01 +0100 |
| parents | db4aa878cea2 470f7d7c57ce |
| children | d64ac9ab4cd0 |
line wrap: on
line diff
--- a/Python/Python-ast.c Tue Nov 22 15:29:32 2011 -0500 +++ b/Python/Python-ast.c Tue Nov 22 22:02:01 2011 +0100 @@ -690,11 +690,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; }
