Skip to content

Commit 9d8a5fa

Browse files
committed
make get_cached_task is private
1 parent 48e61f4 commit 9d8a5fa

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

openml/tasks/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from .task import OpenMLTask
22
from .split import OpenMLSplit
3-
from .task_functions import get_task, list_tasks, list_tasks_by_type, \
4-
list_tasks_by_tag
3+
from .task_functions import (get_task, list_tasks, list_tasks_by_type,
4+
list_tasks_by_tag)
55

66
__all__ = ['OpenMLTask', 'get_task', 'list_tasks', 'list_tasks_by_type',
77
'list_tasks_by_tag', 'OpenMLSplit']

openml/tasks/task_functions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .._api_calls import _perform_api_call
1212

1313

14-
def get_cached_tasks():
14+
def _get_cached_tasks():
1515
tasks = OrderedDict()
1616
for cache_dir in [config.get_cache_directory(), config.get_private_directory()]:
1717

@@ -28,12 +28,12 @@ def get_cached_tasks():
2828
tid = match.group(2)
2929
tid = int(tid)
3030

31-
tasks[tid] = get_cached_task(tid)
31+
tasks[tid] = _get_cached_task(tid)
3232

3333
return tasks
3434

3535

36-
def get_cached_task(tid):
36+
def _get_cached_task(tid):
3737
for cache_dir in [config.get_cache_directory(), config.get_private_directory()]:
3838
task_cache_dir = os.path.join(cache_dir, "tasks")
3939
task_file = os.path.join(task_cache_dir,

0 commit comments

Comments
 (0)