summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2013-09-02 14:18:14 -0400
committerJason R. Coombs <jaraco@jaraco.com>2013-09-02 14:18:14 -0400
commitcaf6636635bb195b6e1a0bf3a43d3b4084c32b8b (patch)
treee0fbb7dcd71cff9eef60872e133b4f5a843f5079
parentc67bdd2e0fc122df6e28ffafca32c31fdb591d90 (diff)
downloadpython-setuptools-bitbucket-caf6636635bb195b6e1a0bf3a43d3b4084c32b8b.tar.gz
Normalize style
-rwxr-xr-xsetuptools/command/easy_install.py12
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