aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/sandbox.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2014-08-01 15:31:47 -0400
committerJason R. Coombs <jaraco@jaraco.com>2014-08-01 15:31:47 -0400
commit249e5853496ec108dc78e58c003bf46315b50ffc (patch)
tree9a254cdb85f7a5ebfb2ed95b2969aa19017fb729 /setuptools/sandbox.py
parent33f496c61e086bd1ac701e44bc17315c0442010c (diff)
downloadexternal_python_setuptools-249e5853496ec108dc78e58c003bf46315b50ffc.tar.gz
external_python_setuptools-249e5853496ec108dc78e58c003bf46315b50ffc.tar.bz2
external_python_setuptools-249e5853496ec108dc78e58c003bf46315b50ffc.zip
Extract variable
Diffstat (limited to 'setuptools/sandbox.py')
-rwxr-xr-xsetuptools/sandbox.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/sandbox.py b/setuptools/sandbox.py
index 7985e9ee..a0d3dc61 100755
--- a/setuptools/sandbox.py
+++ b/setuptools/sandbox.py
@@ -30,7 +30,8 @@ def _execfile(filename, globals, locals=None):
"""
Python 3 implementation of execfile.
"""
- with open(filename, 'rb') as stream:
+ mode = 'rb'
+ with open(filename, mode) as stream:
script = stream.read()
if locals is None:
locals = globals