File: //lib/python3/dist-packages/setuptools/__pycache__/dep_util.cpython-310.pyc
o
    �_�a�  �                   @   s   d dl mZ dd� ZdS )�    )�newer_groupc                 C   sh   t | �t |�krtd��g }g }tt | ��D ]}t| | || �r/|�| | � |�|| � q||fS )z�Walk both arguments in parallel, testing if each source group is newer
    than its corresponding target. Returns a pair of lists (sources_groups,
    targets) where sources is newer than target, according to the semantics
    of 'newer_group()'.
    z5'sources_group' and 'targets' must be the same length)�len�
ValueError�ranger   �append)�sources_groups�targets�	n_sources�	n_targets�i� r   �5/usr/lib/python3/dist-packages/setuptools/dep_util.py�newer_pairwise_group   s   ��r   N)�distutils.dep_utilr   r   r   r   r   r
   �<module>   s