Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
keewenaw
GitHub Repository: keewenaw/ethereum-wallet-cracker
Path: blob/main/test/lib/python3.9/site-packages/setuptools/_reqs.py
4798 views
1
import setuptools.extern.jaraco.text as text
2
3
from pkg_resources import Requirement
4
5
6
def parse_strings(strs):
7
"""
8
Yield requirement strings for each specification in `strs`.
9
10
`strs` must be a string, or a (possibly-nested) iterable thereof.
11
"""
12
return text.join_continuation(map(text.drop_comment, text.yield_lines(strs)))
13
14
15
def parse(strs):
16
"""
17
Deprecated drop-in replacement for pkg_resources.parse_requirements.
18
"""
19
return map(Requirement, parse_strings(strs))
20
21