Skip to content

Commit 75796d5

Browse files
authored
Merge pull request #3575 from DimitriPapadopoulos/io.open
[REF] io.open() → open()
2 parents 6cbbaff + c8f4c42 commit 75796d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/sphinxext/plot_workflow.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def run(self):
273273
else:
274274
function_name = None
275275

276-
with io.open(source_file_name, "r", encoding="utf-8") as fd:
276+
with open(source_file_name, "r", encoding="utf-8") as fd:
277277
code = fd.read()
278278
output_base = os.path.basename(source_file_name)
279279
else:
@@ -438,7 +438,7 @@ def run(self):
438438

439439
# copy script (if necessary)
440440
target_name = os.path.join(dest_dir, output_base + source_ext)
441-
with io.open(target_name, "w", encoding="utf-8") as f:
441+
with open(target_name, "w", encoding="utf-8") as f:
442442
if source_file_name == rst_file:
443443
code_escaped = unescape_doctest(code)
444444
else:

0 commit comments

Comments
 (0)