mirror of
https://github.com/python/cpython.git
synced 2025-07-12 05:45:15 +00:00
Anna Ravenscroft identified many occurrences of "file" used to open a file
in the stdlib and changed each of them to use "open" instead. At this time there are no other known occurrences that can be safely changed (in Lib and all subdirectories thereof).
This commit is contained in:
parent
b5d47efe92
commit
01c77c6628
17 changed files with 53 additions and 53 deletions
|
@ -246,7 +246,7 @@ class BoolTest(unittest.TestCase):
|
|||
|
||||
def test_fileclosed(self):
|
||||
try:
|
||||
f = file(test_support.TESTFN, "w")
|
||||
f = open(test_support.TESTFN, "w")
|
||||
self.assertIs(f.closed, False)
|
||||
f.close()
|
||||
self.assertIs(f.closed, True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue