Skip to content

Commit 2448826

Browse files
authored
Merge pull request #323 from openml/fix_#79
Remove unnecessary writes
2 parents 5bd3dbd + c28258a commit 2448826

2 files changed

Lines changed: 0 additions & 6 deletions

File tree

openml/datasets/functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,9 +338,6 @@ def _get_dataset_description(did_cache_dir, dataset_id):
338338
description = xmltodict.parse(dataset_xml)[
339339
"oml:data_set_description"]
340340

341-
with io.open(description_file, "w", encoding='utf8') as fh:
342-
fh.write(dataset_xml)
343-
344341
return description
345342

346343

openml/runs/functions.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,6 @@ def get_run(run_id):
583583

584584
run = _create_run_from_xml(run_xml)
585585

586-
with io.open(run_file, "w", encoding='utf8') as fh:
587-
fh.write(run_xml)
588-
589586
return run
590587

591588

0 commit comments

Comments
 (0)