mirror of https://github.com/python/cpython.git
This module was still referencing some dead EXEC related constants.
This commit is contained in:
parent
52318d6215
commit
2def557aba
|
@ -4,7 +4,7 @@
|
||||||
from _symtable import USE, DEF_GLOBAL, DEF_LOCAL, DEF_PARAM, \
|
from _symtable import USE, DEF_GLOBAL, DEF_LOCAL, DEF_PARAM, \
|
||||||
DEF_STAR, DEF_DOUBLESTAR, DEF_INTUPLE, DEF_FREE, \
|
DEF_STAR, DEF_DOUBLESTAR, DEF_INTUPLE, DEF_FREE, \
|
||||||
DEF_FREE_GLOBAL, DEF_FREE_CLASS, DEF_IMPORT, DEF_BOUND, \
|
DEF_FREE_GLOBAL, DEF_FREE_CLASS, DEF_IMPORT, DEF_BOUND, \
|
||||||
OPT_IMPORT_STAR, OPT_EXEC, OPT_BARE_EXEC
|
OPT_IMPORT_STAR
|
||||||
|
|
||||||
import weakref
|
import weakref
|
||||||
|
|
||||||
|
@ -94,8 +94,8 @@ def has_children(self):
|
||||||
return bool(self._table.children)
|
return bool(self._table.children)
|
||||||
|
|
||||||
def has_exec(self):
|
def has_exec(self):
|
||||||
"""Return true if the scope uses exec"""
|
"""Return true if the scope uses exec. Deprecated method."""
|
||||||
return bool(self._table.optimized & (OPT_EXEC | OPT_BARE_EXEC))
|
return False
|
||||||
|
|
||||||
def has_import_star(self):
|
def has_import_star(self):
|
||||||
"""Return true if the scope uses import *"""
|
"""Return true if the scope uses import *"""
|
||||||
|
|
Loading…
Reference in New Issue