summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Nüßlein <nutz@unfoog.de>2009-07-07 13:43:19 +0200
committerAndreas Nüßlein <nutz@unfoog.de>2009-07-07 13:43:19 +0200
commitdb65e21745b9e137b104584c6c292b022ea35ca3 (patch)
tree10dd3f860e8921ae3fc8fa1ba902a6bac041d24e
parentb267a4ada4aaeb6c4839b373510e8a28fa888731 (diff)
downloadswppy-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.py4
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()