B
    |?Xc                 @   s`   d dl Z d dlmZ d dlmZ d dlmZmZ eeegef eegef ee dddZ	dS )    N)chain)Path)CallableIterator)pathfilterrecursereturnc            #   sf   x`t | D ]R\ }} fdd|D |dd< x*t||D ]}t |}||r>|V  q>W qW 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
   *lib/python3.7/site-packages/xdist/_path.py
<listcomp>   s    zvisit_path.<locals>.<listcomp>N)oswalkr   r   )r   r   r   Zdirnames	filenamesnamepr
   )r   r   r   
visit_path   s    
r   )
r   	itertoolsr   Zpathlibr   typingr   r   boolr   r
   r
   r
   r   <module>   s
   