diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2020-07-02 18:03:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 18:03:02 -0400 |
commit | c486771a15642d69622b9afeb9178450daf02e24 (patch) | |
tree | cfacfbcc637edbce92480becbea1ee6e651ecc6f /setuptools/launch.py | |
parent | 7a8c226c9a27f1d5efb7e66b8aee779020a0c6a1 (diff) | |
parent | 9013321c25606a5cd63271cd029c2539490b16d3 (diff) | |
download | external_python_setuptools-c486771a15642d69622b9afeb9178450daf02e24.tar.gz external_python_setuptools-c486771a15642d69622b9afeb9178450daf02e24.tar.bz2 external_python_setuptools-c486771a15642d69622b9afeb9178450daf02e24.zip |
Merge pull request #2221 from mattip/pypy
add pypy schemas to command/install.py
Diffstat (limited to 'setuptools/launch.py')
-rw-r--r-- | setuptools/launch.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setuptools/launch.py b/setuptools/launch.py index 308283ea..0208fdf3 100644 --- a/setuptools/launch.py +++ b/setuptools/launch.py @@ -25,7 +25,8 @@ def run(): sys.argv[:] = sys.argv[1:] open_ = getattr(tokenize, 'open', open) - script = open_(script_name).read() + with open_(script_name) as fid: + script = fid.read() norm_script = script.replace('\\r\\n', '\\n') code = compile(norm_script, script_name, 'exec') exec(code, namespace) |