diff options
author | Guido van Rossum <guido@python.org> | 2006-09-06 22:37:15 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-09-06 22:37:15 +0000 |
commit | 2def557aba1aaa42b638f9bf95624b7e6929191c (patch) | |
tree | 5e12b3488be96abce2b858d69e3102db17eddeb2 /Lib/symtable.py | |
parent | 52318d6215f9f9626d38a9b81b52d411dbbdb36a (diff) | |
download | cpython-git-2def557aba1aaa42b638f9bf95624b7e6929191c.tar.gz |
This module was still referencing some dead EXEC related constants.
Diffstat (limited to 'Lib/symtable.py')
-rw-r--r-- | Lib/symtable.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/symtable.py b/Lib/symtable.py index 3f1332e8ed..399faa1208 100644 --- a/Lib/symtable.py +++ b/Lib/symtable.py @@ -4,7 +4,7 @@ import _symtable from _symtable import USE, DEF_GLOBAL, DEF_LOCAL, DEF_PARAM, \ DEF_STAR, DEF_DOUBLESTAR, DEF_INTUPLE, DEF_FREE, \ DEF_FREE_GLOBAL, DEF_FREE_CLASS, DEF_IMPORT, DEF_BOUND, \ - OPT_IMPORT_STAR, OPT_EXEC, OPT_BARE_EXEC + OPT_IMPORT_STAR import weakref @@ -94,8 +94,8 @@ class SymbolTable: return bool(self._table.children) def has_exec(self): - """Return true if the scope uses exec""" - return bool(self._table.optimized & (OPT_EXEC | OPT_BARE_EXEC)) + """Return true if the scope uses exec. Deprecated method.""" + return False def has_import_star(self): """Return true if the scope uses import *""" |