From 64e6854ef295cabdbcb208a2328f7c5cfdfa145c Mon Sep 17 00:00:00 2001 From: Anthony Scemama Date: Fri, 25 Sep 2009 15:04:54 +0200 Subject: [PATCH] Bug in ASSERT Version:1.1.28 --- src/preprocessed_text.py | 6 ++---- src/version.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/preprocessed_text.py b/src/preprocessed_text.py index 0421dcd..04f69b6 100644 --- a/src/preprocessed_text.py +++ b/src/preprocessed_text.py @@ -381,10 +381,8 @@ def irp_simple_statements(text): '''Find condition in assert statement for debug''' assert isinstance(line,Assert) match = re_test.search(line.text) - if match is None: - result = [ line ] - else: - result = [] + result = [] + if match is not None: matches = [ match.group(1).strip(), match.group(3).strip() ] for m in matches: if not(m.isdigit() or ("'" in m) or (m == "")): diff --git a/src/version.py b/src/version.py index d3ed8a2..f7e8872 100644 --- a/src/version.py +++ b/src/version.py @@ -1 +1 @@ -version = "1.1.27" +version = "1.1.28"