summaryrefslogtreecommitdiff
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
commit4915d54a7de09ecd7443690fbe2ea72d69706533 (patch)
tree5112364667d20f7971f5b4e9e874387cb9001759
parent84aa7484ed6f176506855d093704122379bf1fab (diff)
downloadpython-setuptools-bitbucket-4915d54a7de09ecd7443690fbe2ea72d69706533.tar.gz
Extract variable
-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