This commit is contained in:
Benjamin Peterson 2013-10-26 13:22:08 -04:00
commit 77353664e2
3 changed files with 5 additions and 5 deletions

View file

@ -10,10 +10,7 @@ import weakref
__all__ = ["symtable", "SymbolTable", "Class", "Function", "Symbol"]
def symtable(code, filename, compile_type):
raw = _symtable.symtable(code, filename, compile_type)
for top in raw.values():
if top.name == 'top':
break
top = _symtable.symtable(code, filename, compile_type)
return _newSymbolTable(top, filename)
class SymbolTableFactory: