From db65e21745b9e137b104584c6c292b022ea35ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20N=C3=BC=C3=9Flein?= Date: Tue, 7 Jul 2009 13:43:19 +0200 Subject: self.s1 should be never None in a sequence --- src/front/ast.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/front/ast.py b/src/front/ast.py index 8b86cdd..a3613c2 100644 --- a/src/front/ast.py +++ b/src/front/ast.py @@ -82,9 +82,7 @@ class Sequence(Statement): def generate(self, before, after, last): self.debug("Sequence.generate(before = %d, after = %d): %s" % (before, after, repr(self))) - if not self.s1: - self.s2.generate(before, after, last) - elif not self.s2: + if not self.s2: self.s1.generate(before, after, last) else: label = self.newlabel() -- cgit v1.2.3