We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6cbbaff + c8f4c42 commit 75796d5Copy full SHA for 75796d5
nipype/sphinxext/plot_workflow.py
@@ -273,7 +273,7 @@ def run(self):
273
else:
274
function_name = None
275
276
- with io.open(source_file_name, "r", encoding="utf-8") as fd:
+ with open(source_file_name, "r", encoding="utf-8") as fd:
277
code = fd.read()
278
output_base = os.path.basename(source_file_name)
279
@@ -438,7 +438,7 @@ def run(self):
438
439
# copy script (if necessary)
440
target_name = os.path.join(dest_dir, output_base + source_ext)
441
- with io.open(target_name, "w", encoding="utf-8") as f:
+ with open(target_name, "w", encoding="utf-8") as f:
442
if source_file_name == rst_file:
443
code_escaped = unescape_doctest(code)
444
0 commit comments