diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-10-26 17:13:51 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-10-26 17:13:51 (GMT) |
commit | 657d06b13eb42dc300436cd1e1788c421a5ada9f (patch) | |
tree | 2b7176c3371978438299c767f9b4bff9ef152834 /Modules | |
parent | 70f213ab11dd44c28af0a8b70259f0e87647c245 (diff) | |
download | cpython-657d06b13eb42dc300436cd1e1788c421a5ada9f.zip cpython-657d06b13eb42dc300436cd1e1788c421a5ada9f.tar.gz cpython-657d06b13eb42dc300436cd1e1788c421a5ada9f.tar.bz2 |
just return toplevel symbol table rather than all blocks (closes #19393)
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/symtablemodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/symtablemodule.c b/Modules/symtablemodule.c index 15c0f92..ed2bcc7 100644 --- a/Modules/symtablemodule.c +++ b/Modules/symtablemodule.c @@ -33,7 +33,7 @@ symtable_symtable(PyObject *self, PyObject *args) st = Py_SymtableString(str, filename, start); if (st == NULL) return NULL; - t = st->st_symbols; + t = (PyObject *)st->st_top; Py_INCREF(t); PyMem_Free((void *)st->st_future); PySymtable_Free(st); |