Skip to content

Commit 908b5e5

Browse files
committed
improve readability
1 parent 6f50f42 commit 908b5e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/private/pypi/index_sources.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def index_sources(line):
6262
if "@" in head:
6363
requirement = requirement_line
6464
# Extract URL from direct URL format
65-
url = requirement.partition("@")[2].strip().partition(" ")[0].strip()
65+
_, _, url_and_rest = requirement.partition("@")
66+
url = url_and_rest.strip().partition(" ")[0].strip()
6667
# Extract filename from URL
6768
if url:
6869
filename = url.rpartition("/")[2]

0 commit comments

Comments
 (0)