[Python-checkins] cpython (merge 3.3 -> default): merge 3.3

benjamin.peterson python-checkins at python.org
Sat Jan 19 20:59:02 CET 2013


http://hg.python.org/cpython/rev/97aabffae393
changeset: 81604:97aabffae393
parent: 81600:48cddcb9c841
parent: 81602:5b774459571c
user: Benjamin Peterson <benjamin at python.org>
date: Sat Jan 19 14:58:51 2013 -0500
summary:
 merge 3.3
files:
 Python/pyarena.c | 7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)
diff --git a/Python/pyarena.c b/Python/pyarena.c
--- a/Python/pyarena.c
+++ b/Python/pyarena.c
@@ -156,7 +156,6 @@
 void
 PyArena_Free(PyArena *arena)
 {
- int r;
 assert(arena);
 #if defined(Py_DEBUG)
 /*
@@ -173,12 +172,6 @@
 assert(arena->a_objects->ob_refcnt == 1);
 */
 
- /* Clear all the elements from the list. This is necessary
- to guarantee that they will be DECREFed. */
- r = PyList_SetSlice(arena->a_objects,
- 0, PyList_GET_SIZE(arena->a_objects), NULL);
- assert(r == 0);
- assert(PyList_GET_SIZE(arena->a_objects) == 0);
 Py_DECREF(arena->a_objects);
 free(arena);
 }
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /