aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/install_egg_info.py
diff options
context:
space:
mode:
Diffstat (limited to 'setuptools/command/install_egg_info.py')
-rwxr-xr-xsetuptools/command/install_egg_info.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setuptools/command/install_egg_info.py b/setuptools/command/install_egg_info.py
index 6aba68be..87cfc490 100755
--- a/setuptools/command/install_egg_info.py
+++ b/setuptools/command/install_egg_info.py
@@ -86,7 +86,6 @@ class install_egg_info(Command):
if self.dry_run:
return
- f = open(filename, 'wt')
for pkg in nsp:
# ensure pkg is not a unicode string under Python 2.7
pkg = str(pkg)
@@ -96,8 +95,9 @@ class install_egg_info(Command):
if parent:
tmpl_lines += self._nspkg_tmpl_multi
dat = ';'.join(tmpl_lines) % locals() + '\n'
+
+ with open(filename, 'wt') as f:
f.write(dat)
- f.close()
def _get_all_ns_packages(self):
"""Return sorted list of all package namespaces"""