From e8e14591ebb729b4fa19626ce245fa0811cf6f32 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Thu, 16 May 2013 14:37:25 -0500 Subject: rather than passing locals to the class body, just execute the class body in the proper environment --- Python/ceval.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'Python/ceval.c') diff --git a/Python/ceval.c b/Python/ceval.c index e211e4fcaa..60a71f96bf 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1873,14 +1873,6 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) goto error; } - TARGET(STORE_LOCALS) { - PyObject *locals = POP(); - PyObject *old = f->f_locals; - Py_XDECREF(old); - f->f_locals = locals; - DISPATCH(); - } - TARGET(RETURN_VALUE) { retval = POP(); why = WHY_RETURN; -- cgit v1.2.1