Skip to content

Commit 06eed27

Browse files
authored
Fix broken azure blob storage paths (#1003)
* Revert changes to utils.py * Revert changes to test_utils.py
1 parent dae6b7d commit 06eed27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fsspec/tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_infer_options():
205205
# include it in the path. Test that:
206206
# - Parsing doesn't lowercase the bucket
207207
# - The bucket is included in path
208-
for protocol in ["s3", "s3a", "gcs", "gs", "adl", "abfs", "abfss", "gdrive"]:
208+
for protocol in ["s3", "s3a", "gcs", "gs"]:
209209
options = infer_storage_options("%s://Bucket-name.com/test.csv" % protocol)
210210
assert options["path"] == "Bucket-name.com/test.csv"
211211

fsspec/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def infer_storage_options(urlpath, inherit_storage_options=None):
7474
# https://github.com/dask/dask/issues/1417
7575
options["host"] = parsed_path.netloc.rsplit("@", 1)[-1].rsplit(":", 1)[0]
7676

77-
if protocol in ("s3", "s3a", "gcs", "gs", "adl", "abfs", "abfss", "gdrive"):
77+
if protocol in ("s3", "s3a", "gcs", "gs"):
7878
options["path"] = options["host"] + options["path"]
7979
else:
8080
options["host"] = options["host"]

0 commit comments

Comments
 (0)