Skip to content

Commit

Permalink
Merge branch 'master' of github.com:markflorisson88/selma
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeroen committed Jul 6, 2011
2 parents 3504c3b + be6e2ab commit 01ec491
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions test.py
Expand Up @@ -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)
Expand Down

0 comments on commit 01ec491

Please sign in to comment.