Skip to content

Commit 4c6bd2f

Browse files
committed
merge 1630
2 parents a247050 + 03bf396 commit 4c6bd2f

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

openml/config.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ def get_cache_directory() -> str:
475475
476476
"""
477477
url_suffix = urlparse(server).netloc
478-
reversed_url_suffix = os.sep.join(url_suffix.split(".")[::-1]) # noqa: PTH118
478+
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
479481
return os.path.join(_root_cache_directory, reversed_url_suffix) # noqa: PTH118
480482

481483

tests/files/localhost

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
org/openml/test

0 commit comments

Comments
 (0)