diff options
author | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-01-08 13:27:10 (GMT) |
---|---|---|
committer | Stefan Zimmermann <zimmermann.code@gmail.com> | 2014-01-08 13:27:10 (GMT) |
commit | 8986df6b325e924f4143b03705129899fccc72ba (patch) | |
tree | 139139409855384bbaaaa84208d8accbf51cd872 /QMTest | |
parent | 26003a0bd3168f8c2ee3d92a26d35ca977f8e25b (diff) | |
download | SCons-8986df6b325e924f4143b03705129899fccc72ba.zip SCons-8986df6b325e924f4143b03705129899fccc72ba.tar.gz SCons-8986df6b325e924f4143b03705129899fccc72ba.tar.bz2 |
Fixed re.sub for PY3 print() in TestCmd.write().
Diffstat (limited to 'QMTest')
-rw-r--r-- | QMTest/TestCmd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/QMTest/TestCmd.py b/QMTest/TestCmd.py index c075cd3..2ac3da1 100644 --- a/QMTest/TestCmd.py +++ b/QMTest/TestCmd.py @@ -1717,7 +1717,7 @@ class TestCmd(object): begin with a 'w'. The default is 'wb' (binary write). """ if PY3: - content = re.sub('print (.+)', 'print(\1)', content) + content = re.sub(r'print (.+)', r'print(\1)', content) file = self.canonicalize(file) if mode[0] != 'w': raise ValueError("mode must begin with 'w'") |