Skip to content

Commit

Permalink
Make sure 'NAME @ URL' actually resembles a URL
Browse files Browse the repository at this point in the history
This prevents "pseudo URL" VCS requirements from going through the
parser and cause issues later.
  • Loading branch information
uranusjr committed Feb 8, 2021
1 parent 9b11a41 commit 9defcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pip/_internal/req/constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def parse_editable(editable_req):
except InvalidRequirement:
pass
else:
if req.url:
if req.url and "://" in req.url:
# Join the marker back into the name part. This will be parsed out
# later into a Requirement again.
if req.marker:
Expand Down

0 comments on commit 9defcc0

Please sign in to comment.