Remove misplaced flags from re.sub() call (#153)

The 4th argument of re.sub() is maximum number of substitutions,
not flags.

Moreover, re.MULTILINE affects only semantics of ^ and $,
so it wouldn't have any effect on this regular expression.
This commit is contained in:
Jakub Wilk
2017-04-20 00:38:23 -07:00
committed by jbarlow83
parent a1033cdc64
commit 2846fb4e31
+1 -1
View File
@@ -420,7 +420,7 @@ def available_cpu_count():
def cleanup_ruffus_error_message(msg):
msg = re.sub(r'\s+', r' ', msg, re.MULTILINE)
msg = re.sub(r'\s+', r' ', msg)
msg = re.sub(r"\((.+?)\)", r'\1', msg)
msg = msg.strip()
return msg