From 89d8cd943b25185e8d15b15636531ff84277bdab Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 26 Oct 2013 13:13:51 -0400 Subject: just return toplevel symbol table rather than all blocks (closes #19393) --- Modules/symtablemodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Modules/symtablemodule.c') diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index 02a81f11dc..37df82d8b0 100644 --- a/Modules/symtablemodule.c +++ b/Modules/symtablemodule.c @@ -32,7 +32,7 @@ symtable_symtable(PyObject *self, PyObject *args) st = Py_SymtableString(str, filename, start); if (st == NULL) return NULL; - t = st->st_blocks; + t = (PyObject *)st->st_top; Py_INCREF(t); PyMem_Free((void *)st->st_future); PySymtable_Free(st); -- cgit v1.2.1