diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-01 15:31:47 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-08-01 15:31:47 -0400 |
commit | 249e5853496ec108dc78e58c003bf46315b50ffc (patch) | |
tree | 9a254cdb85f7a5ebfb2ed95b2969aa19017fb729 /setuptools/sandbox.py | |
parent | 33f496c61e086bd1ac701e44bc17315c0442010c (diff) | |
download | external_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-x | setuptools/sandbox.py | 3 |
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 |