We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 670934e commit d63d334Copy full SHA for d63d334
nipype/interfaces/tests/test_base.py
@@ -3,7 +3,6 @@
3
from __future__ import print_function
4
from future import standard_library
5
standard_library.install_aliases()
6
-from builtins import open
7
8
import os
9
import tempfile
@@ -72,7 +71,7 @@ def setup_file():
72
71
#global tmp_infile, tmp_dir
73
tmp_dir = tempfile.mkdtemp()
74
tmp_infile = os.path.join(tmp_dir, 'foo.txt')
75
- with open(tmp_infile, 'w'):
+ with open(tmp_infile, 'w') as fp:
76
fp.writelines(['123456789'])
77
return tmp_infile
78
0 commit comments