mirror of https://github.com/python/cpython
Use the keyword form of file() instead of open() to create TESTFN.
This commit is contained in:
parent
808b94eb45
commit
561f899d19
|
@ -1671,7 +1671,7 @@ def inherits():
|
||||||
self.ateof = 1
|
self.ateof = 1
|
||||||
return s
|
return s
|
||||||
|
|
||||||
f = open(TESTFN, 'w')
|
f = file(name=TESTFN, mode='w')
|
||||||
lines = ['a\n', 'b\n', 'c\n']
|
lines = ['a\n', 'b\n', 'c\n']
|
||||||
try:
|
try:
|
||||||
f.writelines(lines)
|
f.writelines(lines)
|
||||||
|
|
Loading…
Reference in New Issue