8000 Remove unnecessary symtable entry · python/cpython@d5c44f5 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5c44f5

Browse files
committed
Remove unnecessary symtable entry
1 parent e0a0b04 commit d5c44f5

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Python/symtable.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1172,11 +1172,6 @@ symtable_enter_typeparam_block(struct symtable *st, identifier name,
11721172
}
11731173
if (current_type == ClassBlock) {
11741174
st->st_cur->ste_type_params_in_class = 1;
1175-
_Py_DECLARE_STR(namespace, ".namespace");
1176-
if (!symtable_add_def(st, &_Py_STR(namespace), DEF_PARAM,
1177-
lineno, col_offset, end_lineno, end_col_offset)) {
1178-
return 0;
1179-
}
11801175
}
11811176
if (kind == AsyncFunctionDef_kind || kind == FunctionDef_kind || kind == ClassDef_kind) {
11821177
_Py_DECLARE_STR(type_params, ".type_params");

0 commit comments

Comments
 (0)
0