@@ -773,9 +773,6 @@ _PyCodegen_Body(compiler *c, location loc, asdl_stmt_seq *stmts, bool is_interac
773773 location loc = LOC (st -> v .Expr .value );
774774 ADDOP_LOAD_CONST (c , loc , cleandoc );
775775
776- PySTEntryObject * ste = SYMTABLE_ENTRY (c );
777- ste -> ste_has_docstring = 1 ;
778-
779776 Py_DECREF (cleandoc );
780777 RETURN_IF_ERROR (codegen_nameop (c , NO_LOCATION , & _Py_ID (__doc__ ), Store ));
781778 }
@@ -1229,7 +1226,6 @@ codegen_function_body(compiler *c, stmt_ty s, int is_async, Py_ssize_t funcflags
12291226 Py_ssize_t first_instr = 0 ;
12301227 PyObject * docstring = _PyAST_GetDocString (body );
12311228 assert (OPTIMIZATION_LEVEL (c ) < 2 || docstring == NULL );
1232- PySTEntryObject * ste = SYMTABLE_ENTRY (c );
12331229 if (docstring ) {
12341230 first_instr = 1 ;
12351231 docstring = _PyCompile_CleanDoc (docstring );
@@ -1238,13 +1234,13 @@ codegen_function_body(compiler *c, stmt_ty s, int is_async, Py_ssize_t funcflags
12381234 return ERROR ;
12391235 }
12401236 Py_ssize_t idx = _PyCompile_AddConst (c , docstring );
1241- ste -> ste_has_docstring = 1 ;
12421237 RETURN_IF_ERROR_IN_SCOPE (c , idx < 0 ? ERROR : SUCCESS );
12431238 }
12441239 Py_XDECREF (docstring );
12451240
12461241 NEW_JUMP_TARGET_LABEL (c , start );
12471242 USE_LABEL (c , start );
1243+ PySTEntryObject * ste = SYMTABLE_ENTRY (c );
12481244 bool add_stopiteration_handler = ste -> ste_coroutine || ste -> ste_generator ;
12491245 if (add_stopiteration_handler ) {
12501246 /* codegen_wrap_in_stopiteration_handler will push a block, so we need to account for that */
0 commit comments