Skip to content

Commit 54c8de1

Browse files
symtable fix 7
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent f437b13 commit 54c8de1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/symtable.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ def get_cells(self):
234234
"""Return a list of cell variable names in the table.
235235
"""
236236
if self.__cells is None:
237-
self.__cells = [s.get_name() for s in self.get_symbols() if s.is_cell()]
237+
is_cell = lambda x: _get_scope(x) == CELL
238+
self.__cells = self.__idents_matching(is_cell)
238239
return self.__cells
239240

240241

0 commit comments

Comments
 (0)