aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-12-29 06:23:09 +0100
committerArfrever Frehtes Taifersar Arahesis <Arfrever.FTA@GMail.Com>2012-12-29 06:23:09 +0100
commit721559fe76a1cda3de639ee2aaa446595169d26b (patch)
treea33afb83c609e4124c7f78fa79ded12f9f139f8a /setuptools/command/easy_install.py
parent5f6ebc0579291a7dd316e2a64466e688ef7bdb69 (diff)
downloadexternal_python_setuptools-721559fe76a1cda3de639ee2aaa446595169d26b.tar.gz
external_python_setuptools-721559fe76a1cda3de639ee2aaa446595169d26b.tar.bz2
external_python_setuptools-721559fe76a1cda3de639ee2aaa446595169d26b.zip
Fix some ResourceWarnings.
--HG-- branch : distribute extra : rebase_source : 31ac3f0135d8cfe0fabc274f1649d1c99eba2868
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index cb911173..0d72f758 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -491,7 +491,7 @@ Please make the appropriate changes for your system and try again.
self.cant_write_to_target()
else:
try:
- f.write("import os;open(%r,'w').write('OK')\n" % (ok_file,))
+ f.write("import os; f = open(%r, 'w'); f.write('OK'); f.close()\n" % (ok_file,))
f.close(); f=None
executable = sys.executable
if os.name=='nt':