summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-10-26 17:13:51 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-10-26 17:13:51 (GMT)
commit89d8cd943b25185e8d15b15636531ff84277bdab (patch)
treeb574ba7068250c78a87ae9030e6c83d665630c94 /Modules
parent050fcd51ccc997596fa9616348f15481d3f110bf (diff)
downloadcpython-89d8cd943b25185e8d15b15636531ff84277bdab.zip
cpython-89d8cd943b25185e8d15b15636531ff84277bdab.tar.gz
cpython-89d8cd943b25185e8d15b15636531ff84277bdab.tar.bz2
just return toplevel symbol table rather than all blocks (closes #19393)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/symtablemodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c
index 02a81f1..37df82d 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);