mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
package: replace open(fn, 'w').close() by open(fn, 'wb').close()
We don't need to open the files in text mode just to create them (or update their modification time).
This commit is contained in:
parent
21a9c748aa
commit
4c9706bd27
5 changed files with 6 additions and 6 deletions
|
@ -1201,7 +1201,7 @@ def egginfo_to_distinfo(record_file, installer=_DEFAULT_INSTALLER,
|
|||
if requested:
|
||||
requested_path = distinfo['requested_path']
|
||||
logger.info('creating %s', requested_path)
|
||||
open(requested_path, 'w').close()
|
||||
open(requested_path, 'wb').close()
|
||||
distinfo['installed'].append(requested_path)
|
||||
|
||||
record_path = distinfo['record_path']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue