[Python-3000-checkins] r51792 - python/branches/p3yk/Lib/symtable.py
guido.van.rossum
python-3000-checkins at python.org
Thu Sep 7 00:37:16 CEST 2006
Author: guido.van.rossum
Date: Thu Sep 7 00:37:15 2006
New Revision: 51792
Modified:
python/branches/p3yk/Lib/symtable.py
Log:
This module was still referencing some dead EXEC related constants.
Modified: python/branches/p3yk/Lib/symtable.py
==============================================================================
--- python/branches/p3yk/Lib/symtable.py (original)
+++ python/branches/p3yk/Lib/symtable.py Thu Sep 7 00:37:15 2006
@@ -4,7 +4,7 @@
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 @@
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 *"""
More information about the Python-3000-checkins
mailing list