diff options
Diffstat (limited to 'test/Deprecated/Options/chdir.py')
-rw-r--r-- | test/Deprecated/Options/chdir.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/Deprecated/Options/chdir.py b/test/Deprecated/Options/chdir.py index 547fe53..a8fb6c6 100644 --- a/test/Deprecated/Options/chdir.py +++ b/test/Deprecated/Options/chdir.py @@ -52,8 +52,7 @@ print "VARIABLE =", repr(env['VARIABLE']) test.write(['bin', 'opts.cfg'], """\ import os os.chdir(os.path.split(__name__)[0]) -import string -exec(string.replace(open('opts2.cfg').read(), '\\r', '\\n')) +exec(open('opts2.cfg', 'rU').read()) """) test.write(['bin', 'opts2.cfg'], """\ |