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 | 4915d54a7de09ecd7443690fbe2ea72d69706533 (patch) | |
| tree | 5112364667d20f7971f5b4e9e874387cb9001759 | |
| parent | 84aa7484ed6f176506855d093704122379bf1fab (diff) | |
| download | python-setuptools-bitbucket-4915d54a7de09ecd7443690fbe2ea72d69706533.tar.gz | |
Extract variable
| -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 |
