diff --git a/tools/run_regression_tests.py b/tools/run_regression_tests.py index c601971ff..14573f824 100644 --- a/tools/run_regression_tests.py +++ b/tools/run_regression_tests.py @@ -35,9 +35,9 @@ import subprocess import sys def indent(s): - s = string.split(s, '\n') - s = [(3 * ' ') + string.lstrip(line) for line in s] - s = string.join(s, '\n') + s = s.split('\n') + s = [(3 * ' ') + line.lstrip() for line in s] + s = '\n'.join(s) return s # returns a list of new revisions