diff options
Diffstat (limited to 'Python')
| -rw-r--r-- | Python/compile.c | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/Python/compile.c b/Python/compile.c index e1f2a55..347a192 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -1737,8 +1737,11 @@ compiler_while(struct compiler *c, stmt_ty s)  	basicblock *loop, *orelse, *end, *anchor = NULL;  	int constant = expr_constant(s->v.While.test); -	if (constant == 0) +	if (constant == 0) { +		if (s->v.While.orelse) +			VISIT_SEQ(c, stmt, s->v.While.orelse);  		return 1; +	}  	loop = compiler_new_block(c);  	end = compiler_new_block(c);  	if (constant == -1) { | 
