Repository navigation
refactor: split URL specs without a private uproot API - #333
Merged
Merged
Conversation
split_spec now splits a URL at the first colon after the host and port. The uproot backend no longer calls uproot._util.file_object_path_split. Refs #322 Assisted-by: ClaudeCode:claude-opus-5-5
henryiii
marked this pull request as ready for review
November 21, 2026 02:09
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 AI text below 🤖
Remove the calls to the private
uproot._util.file_object_path_split.split_specnow splits URLs too: at the first colon after the host and port, and before a query. A Windows drive in afile:///C:/URL is not a separator. Local paths split as before.Differences from the uproot function, on purpose:
.rootsuffix is necessary before the colon. A directory URL with a key (osdf:///dir/:sub/f.root) and any suffix (also.ROOT,.root.1, which uproot 5.6 and 5.7 split differently) now split..root:./at the ends and collapses//);Node.resolvealready ignores these.Known limits (these worked before):
root://user:pass@host/f.root:T) splits at the password colon. fix: skip the userinfo of a URL in split_spec #334 fixes this.https://host/a:b.root:T) splits at the first colon.simplecache::root://host/f.root:T), not as inzip://inner.root:T::https://host/a.zip.A new test checks a list of URL specs and compares each with the uproot function where they agree.
Refs #322