mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
just return toplevel symbol table rather than all blocks (closes #19393)
This commit is contained in:
parent
050fcd51cc
commit
89d8cd943b
3 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue