
    i              	           d dl Zd dlmc mZ d dlmZ d dlm	Z	 d dl
Z
d dlmZ d dlmZ dedeegef         deegef         d	ee         fd
ZdS )    N)Iterator)chainPath)Callablepathfilterrecursereturnc             #      K   t          j        |           D ]L\  }}fd|D             |dd<   t          ||          D ]!}t          |          } ||          r|V  "MdS )z
    Implements the interface of ``py.path.local.visit()`` for Path objects,
    to simplify porting the code over from ``py.path.local``.
    c                 F    g | ]} t          |                    |S  r   ).0xdirpathr
   s     R/home/ubuntu/.hermes/hermes-agent/venv/lib/python3.11/site-packages/xdist/_path.py
<listcomp>zvisit_path.<locals>.<listcomp>   s2    HHHQggd7A6F6F.G.GHqHHH    N)oswalkr   r   )r   r	   r
   dirnames	filenamesnamepr   s     `    @r   
visit_pathr      s       )+  $9HHHHH(HHH(I.. 	 	DWd##Avayy 	 r   )builtins@py_builtins_pytest.assertion.rewrite	assertionrewrite
@pytest_arcollections.abcr   	itertoolsr   r   pathlibr   typingr   boolr   r   r   r   <module>r'      s                  $ $ $ $ $ $       				            
#TFDL1<DdVT\<Rd^     r   