mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Disable support for access statement
This commit is contained in:
parent
aacdc9da75
commit
0dfcf753ad
9 changed files with 732 additions and 716 deletions
|
@ -1792,12 +1792,12 @@ com_newlocal(c, name)
|
|||
|
||||
#define strequ(a, b) (strcmp((a), (b)) == 0)
|
||||
|
||||
#ifdef SUPPORT_OBSOLETE_ACCESS
|
||||
static void
|
||||
com_access_stmt(c, n)
|
||||
struct compiling *c;
|
||||
node *n;
|
||||
{
|
||||
#if 0
|
||||
int i, j, k, mode, imode;
|
||||
object *vmode;
|
||||
REQ(n, access_stmt);
|
||||
|
@ -1848,8 +1848,8 @@ com_access_stmt(c, n)
|
|||
com_addoparg(c, LOAD_CONST, imode);
|
||||
com_addopname(c, ACCESS_MODE, CHILD(n, i));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
com_exec_stmt(c, n)
|
||||
|
@ -2421,9 +2421,11 @@ com_node(c, n)
|
|||
case global_stmt:
|
||||
com_global_stmt(c, n);
|
||||
break;
|
||||
#ifdef SUPPORT_OBSOLETE_ACCESS
|
||||
case access_stmt:
|
||||
com_access_stmt(c, n);
|
||||
break;
|
||||
#endif
|
||||
case exec_stmt:
|
||||
com_exec_stmt(c, n);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue