Skip to content

Commit f894310

Browse files
committed
Make sure 'NAME @ URL' actually resembles a URL
This prevents "pseudo URL" VCS requirements from going through the parser and cause issues later.
1 parent c684f19 commit f894310

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pip/_internal/req/constructors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def parse_editable(editable_req):
8181
except InvalidRequirement:
8282
pass
8383
else:
84-
if req.url:
84+
if req.url and "://" in req.url:
8585
# Join the marker back into the name part. This will be parsed out
8686
# later into a Requirement again.
8787
if req.marker:

0 commit comments

Comments
 (0)