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.
2 parents a247050 + 03bf396 commit 4c6bd2fCopy full SHA for 4c6bd2f
2 files changed
openml/config.py
@@ -475,7 +475,9 @@ def get_cache_directory() -> str:
475
476
"""
477
url_suffix = urlparse(server).netloc
478
- reversed_url_suffix = os.sep.join(url_suffix.split(".")[::-1]) # noqa: PTH118
+ url_parts = url_suffix.split(".")[::-1]
479
+ url_parts_no_port = [part.split(":")[0] for part in url_parts]
480
+ reversed_url_suffix = os.sep.join(url_parts_no_port) # noqa: PTH118
481
return os.path.join(_root_cache_directory, reversed_url_suffix) # noqa: PTH118
482
483
tests/files/localhost
@@ -0,0 +1 @@
1
+org/openml/test
0 commit comments