We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2de9ab9 commit 3eca992Copy full SHA for 3eca992
pkg_resources/__init__.py
@@ -3141,12 +3141,12 @@ def join_continuation(lines):
3141
3142
3143
def parse_requirements(strs):
3144
- """Yield ``Requirement`` objects for each specification in `strs`
+ """
3145
+ Yield ``Requirement`` objects for each specification in `strs`.
3146
3147
`strs` must be a string, or a (possibly-nested) iterable thereof.
3148
"""
- lines = map(drop_comment, yield_lines(strs))
3149
- return map(Requirement, join_continuation(lines))
+ return map(Requirement, join_continuation(map(drop_comment, yield_lines(strs))))
3150
3151
3152
class RequirementParseError(packaging.requirements.InvalidRequirement):
0 commit comments