Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3a32e3b

Browse files
authored
1 parent 325e4ba commit 3a32e3b

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

Parser/asdl_c.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,19 +1187,18 @@ class PartingShots(StaticVisitor):
11871187
}
11881188
11891189
/* mode is 0 for "exec", 1 for "eval" and 2 for "single" input */
1190-
/* and 3 for "func_type" */
11911190
mod_ty PyAST_obj2mod(PyObject* ast, PyArena* arena, int mode)
11921191
{
11931192
mod_ty res;
11941193
PyObject *req_type[3];
1195-
char *req_name[] = {"Module", "Expression", "Interactive", "FunctionType"};
1194+
char *req_name[] = {"Module", "Expression", "Interactive"};
11961195
int isinstance;
11971196
11981197
req_type[0] = (PyObject*)Module_type;
11991198
req_type[1] = (PyObject*)Expression_type;
12001199
req_type[2] = (PyObject*)Interactive_type;
12011200
1202-
assert(0 <= mode && mode <= 3);
1201+
assert(0 <= mode && mode <= 2);
12031202
12041203
if (!init_types())
12051204
return NULL;

Python/Python-ast.c

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)