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:
Victor Stinner 2011-05-19 15:52:59 +02:00
parent 21a9c748aa
commit 4c9706bd27
5 changed files with 6 additions and 6 deletions

View file

@ -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)