diff --git a/openml/datasets/functions.py b/openml/datasets/functions.py index 8e37d02ef9..cf81475af0 100644 --- a/openml/datasets/functions.py +++ b/openml/datasets/functions.py @@ -338,9 +338,6 @@ def _get_dataset_description(did_cache_dir, dataset_id): description = xmltodict.parse(dataset_xml)[ "oml:data_set_description"] - with io.open(description_file, "w", encoding='utf8') as fh: - fh.write(dataset_xml) - return description diff --git a/openml/runs/functions.py b/openml/runs/functions.py index 2b1ea52f12..3e12362f5d 100644 --- a/openml/runs/functions.py +++ b/openml/runs/functions.py @@ -583,9 +583,6 @@ def get_run(run_id): run = _create_run_from_xml(run_xml) - with io.open(run_file, "w", encoding='utf8') as fh: - fh.write(run_xml) - return run