diff --git a/README.rst b/README.rst index 9b8864b..b583c1e 100644 --- a/README.rst +++ b/README.rst @@ -24,6 +24,11 @@ Documentation can be found in:: ./Versag/SELMA.pdf +You can build the report as follows:: + + $ cd Verslag + $ make + Source can be found in:: ./src/SELMA diff --git a/test.py b/test.py index 5382907..be711bc 100644 --- a/test.py +++ b/test.py @@ -125,8 +125,8 @@ def replacement(match): "Preserve line numbers from the original source file" return '\n' * match.group().count('\n') - open('temp.selma', 'w').write( - re.sub(sub_pattern, replacement, data, flags=re.DOTALL)) + regex = re.compile(sub_pattern, re.DOTALL) + open('temp.selma', 'w').write(regex.sub(replacement, data)) inputs = re.findall(input_pattern, data, re.DOTALL) outputs = re.findall(output_pattern, data, re.DOTALL)