diff options
author | Steven Knight <knight@baldmt.com> | 2010-04-12 01:50:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2010-04-12 01:50:52 (GMT) |
commit | c74d83bbf1422d3eac32ffa12bf0bbc1d73461df (patch) | |
tree | fa0fbd5e94a2affbfe6c3543439475c25119978b /src/engine/SCons/SConfTests.py | |
parent | df6e06482bdbacf0c7f5c6838edc5236db133a22 (diff) | |
download | SCons-c74d83bbf1422d3eac32ffa12bf0bbc1d73461df.zip SCons-c74d83bbf1422d3eac32ffa12bf0bbc1d73461df.tar.gz SCons-c74d83bbf1422d3eac32ffa12bf0bbc1d73461df.tar.bz2 |
Issue 2336: Forward compatibility for use of the "builtins" module
instead of __builtin__.
Diffstat (limited to 'src/engine/SCons/SConfTests.py')
-rw-r--r-- | src/engine/SCons/SConfTests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/SConfTests.py b/src/engine/SCons/SConfTests.py index 7e48862..4d29b78 100644 --- a/src/engine/SCons/SConfTests.py +++ b/src/engine/SCons/SConfTests.py @@ -98,11 +98,11 @@ class SConfTestCase(unittest.TestCase): # original builtin functions whenever we have to reset # all of our global state. - import __builtin__ + import builtins import SCons.Platform.win32 - __builtin__.file = SCons.Platform.win32._builtin_file - __builtin__.open = SCons.Platform.win32._builtin_open + builtins.file = SCons.Platform.win32._builtin_file + builtins.open = SCons.Platform.win32._builtin_open def _baseTryXXX(self, TryFunc): # TryCompile and TryLink are much the same, so we can test them |