summaryrefslogtreecommitdiff
path: root/Lib/packaging/command/install_distinfo.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-05-19 15:52:59 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-05-19 15:52:59 +0200
commit4c9706bd275134d513c61e07764215a7d0c2302c (patch)
treee6fa27d81211d15e3028e9ce7cde899c58a6f3c4 /Lib/packaging/command/install_distinfo.py
parent21a9c748aa8698c8201e30a58320d587f6bb7540 (diff)
downloadcpython-git-4c9706bd275134d513c61e07764215a7d0c2302c.tar.gz
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).
Diffstat (limited to 'Lib/packaging/command/install_distinfo.py')
-rw-r--r--Lib/packaging/command/install_distinfo.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/packaging/command/install_distinfo.py b/Lib/packaging/command/install_distinfo.py
index a25a15a2bb..db49236b96 100644
--- a/Lib/packaging/command/install_distinfo.py
+++ b/Lib/packaging/command/install_distinfo.py
@@ -98,7 +98,7 @@ class install_distinfo(Command):
if self.requested:
requested_path = os.path.join(self.distinfo_dir, 'REQUESTED')
logger.info('creating %s', requested_path)
- open(requested_path, 'w').close()
+ open(requested_path, 'wb').close()
self.outputs.append(requested_path)