Commit 97fda335 authored by Simon Marlow's avatar Simon Marlow
Browse files

fix a regex that was too slow

parent a3a4a3e9
......@@ -971,13 +971,13 @@ def normalise_errmsg( str ):
# the colon is there because it appears in error messages; this
# hacky solution is used in place of more sophisticated filename
# mangling
str = re.sub('([^\\s]+)\\.exe', '\\1', str)
str = re.sub('([^\\s])\\.exe', '\\1', str)
return str
def normalise_output( str ):
# Remove a .exe extension (for Windows)
# This can occur in error messages generated by the program.
str = re.sub('([^\\s]+)\\.exe', '\\1', str)
str = re.sub('([^\\s])\\.exe', '\\1', str)
return str
def if_verbose( n, str ):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment