mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -133,7 +133,7 @@ class TestDistribution(CommonDistributionTests, unittest.TestCase):
|
|||
def tearDown(self):
|
||||
for distinfo_dir in self.dirs:
|
||||
record_file = os.path.join(distinfo_dir, 'RECORD')
|
||||
open(record_file, 'w').close()
|
||||
open(record_file, 'wb').close()
|
||||
super(TestDistribution, self).tearDown()
|
||||
|
||||
def test_instantiation(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue