summaryrefslogtreecommitdiff
path: root/src/engine/SCons/SConfTests.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2010-04-12 01:50:52 +0000
committerSteven Knight <knight@baldmt.com>2010-04-12 01:50:52 +0000
commitec71c74b4e9ecfe8497f357539d0b7feb509ee88 (patch)
treefa0fbd5e94a2affbfe6c3543439475c25119978b /src/engine/SCons/SConfTests.py
parent6a73610dfc6f3e3ed7ccfcf3853859b7b4360e3c (diff)
downloadscons-ec71c74b4e9ecfe8497f357539d0b7feb509ee88.tar.gz
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.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/SConfTests.py b/src/engine/SCons/SConfTests.py
index 7e48862e..4d29b789 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