File: //proc/self/root/usr/share/python3/debpython/__pycache__/files.cpython-310.pyc
o
��b� � @ s~ d dl Z d dlmZ d dlmZmZmZ d dlmZm Z d dl
mZ e �e
�Zddd�Zdd d
�Zdd� Zd
d� Zdd� ZdS )� N)�walk)�abspath�isfile�join)�Popen�PIPE)�
PUBLIC_DIR_RE�z.pyc c s� � t |�}t| tt f�r| D ]}t|�D ]}|V qqdS t| �r+| �|�r+| V dS tt| ��D ]\}}}|D ]
}|�|�rEt||�V q8q1dS )z6Generate *.py file names available in given directory.N) �tuple�
isinstance�list�from_directoryr �endswithr r r )�dname�
extensions�item�fn�root�dirs�
file_names� r �%/usr/share/python3/debpython/files.pyr
s"