diff options
author | Andreas Nüßlein <nutz@unfoog.de> | 2009-07-07 13:43:19 +0200 |
---|---|---|
committer | Andreas Nüßlein <nutz@unfoog.de> | 2009-07-07 13:43:19 +0200 |
commit | db65e21745b9e137b104584c6c292b022ea35ca3 (patch) | |
tree | 10dd3f860e8921ae3fc8fa1ba902a6bac041d24e | |
parent | b267a4ada4aaeb6c4839b373510e8a28fa888731 (diff) | |
download | swppy-db65e21745b9e137b104584c6c292b022ea35ca3.tar.gz swppy-db65e21745b9e137b104584c6c292b022ea35ca3.tar.xz swppy-db65e21745b9e137b104584c6c292b022ea35ca3.zip |
self.s1 should be never None in a sequence
-rw-r--r-- | src/front/ast.py | 4 |
1 files changed, 1 insertions, 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() |