From c28258a021bd3f8c5c2312e6487d4dd8ecd833c8 Mon Sep 17 00:00:00 2001 From: Matthias Feurer Date: Sun, 8 Oct 2017 21:37:07 +0200 Subject: [PATCH] Remove unnecessary writes --- openml/datasets/functions.py | 3 --- openml/runs/functions.py | 3 --- 2 files changed, 6 deletions(-) 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