Your IP : 216.73.216.213
B
� f� �
@ s� d Z dZddlZddlZddlZddlZyddlZW n6 ek
rj G dd� d�Ze� Zedej d� Y nX e�
d�Ze�
d �Zd
d� Z
dd
� Zdd� Zdejd Zedk�r�ye�ejdd� d�\ZZW nL ejk
�r Z z*eeej d� eeej d� e�d� W ddZ[X Y nX ejZdZx2eD ]*\ZZedk�rFejZnedk�r,dZ�q,W e�sxeeej d� e�d� x>e�ee�D ].Ze�r�ede � ee�Z e �r�ee� �q�W dS )zcList all those Python files that require a coding directive
Usage: findnocoding.py dir1 [dir2...]
zOleg Broytmann, Georg Brandl� Nc @ s e Zd Zd Z ZZdd� ZdS )�pysourceNc o sz xt|D ]l}t j�|�r$|�d�V qt j�|�rx@t �|�D ]2\}}}x&|D ]}|�d�rLt j�||�V qLW q<W qW d S )Nz.py)�os�path�isfile�endswith�isdir�walk�join) �self�paths�args�kwargsr �root�dirs�files�filename� r �?/opt/alt/python37/lib64/python3.7/Tools/scripts/findnocoding.py�walk_python_files s
zpysource.walk_python_files)�__name__�
__module__�__qualname__Zhas_python_ext�looks_like_python�can_be_compiledr r r r r r s r z^The pysource module is not available; no sophisticated Python source file search will be done.)�files&