@@ -1735,11 +1735,11 @@ symtable_enter_type_param_block(struct symtable *st, identifier name,
17351735 } while(0)
17361736
17371737#define ENTER_CONDITIONAL_BLOCK (ST ) \
1738- int __in_conditional_block = (ST)->st_cur->ste_in_conditional_block; \
1738+ int in_conditional_block = (ST)->st_cur->ste_in_conditional_block; \
17391739 (ST)->st_cur->ste_in_conditional_block = 1;
17401740
17411741#define LEAVE_CONDITIONAL_BLOCK (ST ) \
1742- (ST)->st_cur->ste_in_conditional_block = __in_conditional_block ;
1742+ (ST)->st_cur->ste_in_conditional_block = in_conditional_block ;
17431743
17441744#define ENTER_RECURSIVE () \
17451745if (Py_EnterRecursiveCall(" during compilation")) { \
@@ -2728,10 +2728,9 @@ symtable_visit_params(struct symtable *st, asdl_arg_seq *args)
27282728static int
27292729symtable_visit_annotation (struct symtable * st , expr_ty annotation , void * key )
27302730{
2731- bool new_conditional = (st -> st_cur -> ste_type == ClassBlock || st -> st_cur -> ste_type == ModuleBlock )
2732- && st -> st_cur -> ste_in_conditional_block
2733- && !st -> st_cur -> ste_has_conditional_annotations ;
2734- if (new_conditional ) {
2731+ if ((st -> st_cur -> ste_type == ClassBlock || st -> st_cur -> ste_type == ModuleBlock )
2732+ && st -> st_cur -> ste_in_conditional_block
2733+ && !st -> st_cur -> ste_has_conditional_annotations ) {
27352734 st -> st_cur -> ste_has_conditional_annotations = 1 ;
27362735 if (!symtable_add_def (st , & _Py_ID (__conditional_annotations__ ), USE , LOCATION (annotation ))) {
27372736 return 0 ;
@@ -2759,11 +2758,6 @@ symtable_visit_annotation(struct symtable *st, expr_ty annotation, void *key)
27592758 return 0 ;
27602759 }
27612760 }
2762- if (new_conditional ) {
2763- if (!symtable_add_def (st , & _Py_ID (__conditional_annotations__ ), USE , LOCATION (annotation ))) {
2764- return 0 ;
2765- }
2766- }
27672761 VISIT (st , expr , annotation );
27682762 if (!symtable_exit_block (st )) {
27692763 return 0 ;
0 commit comments