mirror of https://github.com/python/cpython
fix silly errors of mine
This commit is contained in:
parent
86da890a9e
commit
e6b5ba621f
|
@ -15,7 +15,7 @@ def symtable(code, filename, compile_type):
|
|||
for top in raw.itervalues():
|
||||
if top.name == 'top':
|
||||
break
|
||||
return newSymbolTable(top, filename)
|
||||
return _newSymbolTable(top, filename)
|
||||
|
||||
class SymbolTableFactory:
|
||||
def __init__(self):
|
||||
|
@ -110,12 +110,12 @@ class SymbolTable(object):
|
|||
return [self.lookup(ident) for ident in self.get_identifiers()]
|
||||
|
||||
def __check_children(self, name):
|
||||
return [newSymbolTable(st, self._filename)
|
||||
return [_newSymbolTable(st, self._filename)
|
||||
for st in self._table.children
|
||||
if st.name == name]
|
||||
|
||||
def get_children(self):
|
||||
return [newSymbolTable(st, self._filename)
|
||||
return [_newSymbolTable(st, self._filename)
|
||||
for st in self._table.children]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue