Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
attempt to parse windows paths
Browse files Browse the repository at this point in the history
lobis committed Nov 15, 2023
1 parent 39e7673 commit a168498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/uproot/_util.py
Original file line number Diff line number Diff line change
@@ -386,6 +386,9 @@ def file_path_to_source_class(file_path: str | IO, options: dict):
protocol, path = fsspec.core.split_protocol(file_path)
if protocol == "file":
file_path = unquote(path)
if "://" not in file_path:
file_path = "file://" + file_path
_, file_path = fsspec.core.url_to_fs(file_path)

if not (
isinstance(handler_cls, type)

0 comments on commit a168498

Please sign in to comment.