]> granicus.if.org Git - python/commit
package: replace open(fn, 'w').close() by open(fn, 'wb').close()
authorVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 13:52:59 +0000 (15:52 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Thu, 19 May 2011 13:52:59 +0000 (15:52 +0200)
commit4c9706bd275134d513c61e07764215a7d0c2302c
treee6fa27d81211d15e3028e9ce7cde899c58a6f3c4
parent21a9c748aa8698c8201e30a58320d587f6bb7540
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).
Lib/packaging/command/install_distinfo.py
Lib/packaging/tests/test_command_build_py.py
Lib/packaging/tests/test_database.py
Lib/packaging/tests/test_install.py
Lib/packaging/util.py