a
    4ñ»jš  ã                   @   sh   d dl mZ d dlmZ d dlZd dlmZ d dlmZ eeege	f eege	f ee dœdd„Z
dS )	é    )ÚIterator)ÚchainN©ÚPath)ÚCallable)ÚpathÚfilterÚrecurseÚreturnc                #   s^   t  | ¡D ]N\‰ }}‡ ‡fdd„|D ƒ|dd…< t||ƒD ]}tˆ |ƒ}||ƒr:|V  q:q
dS )z�
    Implements the interface of ``py.path.local.visit()`` for Path objects,
    to simplify porting the code over from ``py.path.local``.
    c                    s   g | ]}ˆt ˆ |ƒƒr|‘qS © r   )Ú.0Úx©Údirpathr	   r   ú1E:\soccer\ml_env\Lib\site-packages\xdist/_path.pyÚ
<listcomp>   ó    zvisit_path.<locals>.<listcomp>N)ÚosÚwalkr   r   )r   r   r	   ÚdirnamesÚ	filenamesÚnameÚpr   r   r   Ú
visit_path   s    
r   )Úcollections.abcr   Ú	itertoolsr   r   Úpathlibr   Útypingr   Úboolr   r   r   r   r   Ú<module>   s   þ