We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c908993 commit 06b9741Copy full SHA for 06b9741
2 files changed
openml/config.py
@@ -472,9 +472,8 @@ def get_cache_directory() -> str:
472
473
"""
474
url_suffix = urlparse(server).netloc
475
- url_parts = url_suffix.split(".")[::-1]
476
- url_parts_no_port = [part.split(":")[0] for part in url_parts]
477
- reversed_url_suffix = os.sep.join(url_parts_no_port) # noqa: PTH118
+ url_parts = url_suffix.replace(":", "_").split(".")[::-1]
+ reversed_url_suffix = os.sep.join(url_parts) # noqa: PTH118
478
return os.path.join(_root_cache_directory, reversed_url_suffix) # noqa: PTH118
479
480
tests/files/localhost tests/files/localhost_8000tests/files/localhost renamed to tests/files/localhost_8000
0 commit comments