diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-02 14:18:14 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-09-02 14:18:14 -0400 |
commit | 05ea2dae700821c491b3fd1cc665c26e1b7a5ed8 (patch) | |
tree | d3841615a5fefef6d806acb1b2ac803a90b4c535 /setuptools/command/easy_install.py | |
parent | a81b616547845b80c52e642bfe56180676d46d0c (diff) | |
download | external_python_setuptools-05ea2dae700821c491b3fd1cc665c26e1b7a5ed8.tar.gz external_python_setuptools-05ea2dae700821c491b3fd1cc665c26e1b7a5ed8.tar.bz2 external_python_setuptools-05ea2dae700821c491b3fd1cc665c26e1b7a5ed8.zip |
Normalize style
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-x | setuptools/command/easy_install.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index a7a40e26..7aff9c84 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -502,7 +502,8 @@ Please make the appropriate changes for your system and try again. else: try: f.write("import os; f = open(%r, 'w'); f.write('OK'); f.close()\n" % (ok_file,)) - f.close(); f=None + f.close() + f=None executable = sys.executable if os.name=='nt': dirname,basename = os.path.split(executable) @@ -521,9 +522,12 @@ Please make the appropriate changes for your system and try again. ) return True finally: - if f: f.close() - if os.path.exists(ok_file): os.unlink(ok_file) - if os.path.exists(pth_file): os.unlink(pth_file) + if f: + f.close() + if os.path.exists(ok_file): + os.unlink(ok_file) + if os.path.exists(pth_file): + os.unlink(pth_file) if not self.multi_version: log.warn("TEST FAILED: %s does NOT support .pth files", instdir) return False |