mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Issue #9561: distutils now reads and writes egg-info files using UTF-8
instead of the locale encoding.
This commit is contained in:
parent
a404b49321
commit
a1bea6e10c
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue