Skip to content

Commit 37cafa7

Browse files
committed
Strip leading slash for repo url
1 parent a7b7126 commit 37cafa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/private/pypi/parse_simpleapi_html.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,4 +138,4 @@ def _absolute_url(index_url, candidate):
138138
return "{}/{}".format(index_url, last.strip("/"))
139139

140140
# relative path without up-references
141-
return "{}/{}".format(index_url, candidate)
141+
return "{}/{}".format(index_url.rstrip("/"), candidate)

0 commit comments

Comments
 (0)