diff options
author | Benjamin Peterson <benjamin@python.org> | 2013-10-26 17:22:08 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2013-10-26 17:22:08 (GMT) |
commit | 77353664e2fc0489bb18e2644d36b67ddea2ceef (patch) | |
tree | ce2cc7ff11331267e34c4cf748af25db0675b25e /Lib | |
parent | a577f1e0f15ca23e2916022009843b4c16ce5c96 (diff) | |
parent | 89d8cd943b25185e8d15b15636531ff84277bdab (diff) | |
download | cpython-77353664e2fc0489bb18e2644d36b67ddea2ceef.zip cpython-77353664e2fc0489bb18e2644d36b67ddea2ceef.tar.gz cpython-77353664e2fc0489bb18e2644d36b67ddea2ceef.tar.bz2 |
merge 3.3 (#19393)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/symtable.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index c0e32df..e23313b 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -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: |