Skip to content

Commit

Permalink
Uniform use of user supplied vocabulary
Browse files Browse the repository at this point in the history
  • Loading branch information
sbidoul committed May 21, 2020
1 parent 8f7ef08 commit 9384055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion news/7811.feature
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Generate PEP 376 REQUESTED metadata for top level requirements installed
Generate PEP 376 REQUESTED metadata for user supplied requirements installed
by pip.
6 changes: 3 additions & 3 deletions src/pip/_internal/req/req_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def add_requirement(

# This next bit is really a sanity check.
assert not install_req.user_supplied or parent_req_name is None, (
"a direct req shouldn't have a parent"
"a user supplied req shouldn't have a parent"
)

# Unnamed requirements are scanned again and the requirement won't be
Expand Down Expand Up @@ -166,8 +166,8 @@ def add_requirement(
# If we're now installing a constraint, mark the existing
# object for real installation.
existing_req.constraint = False
# If we're now installing a top level requirement, mark the existing
# object as top level.
# If we're now installing a user supplied requirement,
# mark the existing object as such.
if install_req.user_supplied:
existing_req.user_supplied = True
existing_req.extras = tuple(sorted(
Expand Down

0 comments on commit 9384055

Please sign in to comment.