summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command/install_egg_info.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:38 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-06 11:57:38 (GMT)
commit388c0e2325f606d497ec174a4a6b28c4d352db2c (patch)
tree83ab157488dd364de2a26b453c34e6ce7cc29537 /Lib/distutils/command/install_egg_info.py
parent6d8f744730c0689d822db1a2425170d7d5d44aca (diff)
parent900c292c6b886ad9c693d7e0481dc16398d5071d (diff)
downloadcpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.zip
cpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.tar.gz
cpython-388c0e2325f606d497ec174a4a6b28c4d352db2c.tar.bz2
merge heads
Diffstat (limited to 'Lib/distutils/command/install_egg_info.py')
-rw-r--r--Lib/distutils/command/install_egg_info.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/distutils/command/install_egg_info.py b/Lib/distutils/command/install_egg_info.py
index c888031..c2a7d64 100644
--- a/Lib/distutils/command/install_egg_info.py
+++ b/Lib/distutils/command/install_egg_info.py
@@ -40,9 +40,8 @@ class install_egg_info(Command):
"Creating "+self.install_dir)
log.info("Writing %s", target)
if not self.dry_run:
- f = open(target, 'w')
- self.distribution.metadata.write_pkg_file(f)
- f.close()
+ with open(target, 'w', encoding='UTF-8') as f:
+ self.distribution.metadata.write_pkg_file(f)
def get_outputs(self):
return self.outputs