From bc326473b3b12a8af19dd9156f724d2dc8b84897 Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 19 Feb 2010 11:41:57 +0100 Subject: [PATCH] Bug with "THEN" => lowercased --- src/parsed_text.py | 2 +- src/preprocessed_text.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parsed_text.py b/src/parsed_text.py index 7e6f885..b2ce7c3 100644 --- a/src/parsed_text.py +++ b/src/parsed_text.py @@ -449,7 +449,7 @@ check_opt() ###################################################################### if __name__ == '__main__': for i in range(len(parsed_text)): - if parsed_text[i][0] == 'properties.irp.f': + if parsed_text[i][0] == 'intmul.irp.f': print '!-------- %s -----------'%(parsed_text[i][0]) for line in parsed_text[i][1]: print line[1] diff --git a/src/preprocessed_text.py b/src/preprocessed_text.py index 75cf876..33aa6c6 100644 --- a/src/preprocessed_text.py +++ b/src/preprocessed_text.py @@ -691,7 +691,7 @@ endif''' result = [] for line in text: if isinstance(line,If): - if line.text.endswith("then"): + if line.text.lower().endswith("then"): result.append(line) else: buffer = line.text