python (3.11.7)

(root)/
lib/
python3.11/
site-packages/
setuptools/
_reqs.py
       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))