관리-도구
편집 파일: discover_files.cpython-311.pyc
� �܋f` � � � d Z ddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ej e� � Zde dee gef d ee ddf fd �Zdee de d ee dee ded ee ddf fd�ZdS )z'Functions related to discovering paths.� N)�Callable)� Generator)�Sequence)�utils�arg� predicate�returnc # � K � || � � rdS t j � | � � r�t j | � � D ]�\ }}}t |� � D ]B}t j � ||� � } ||� � r|� |� � �C|D ]1}t j � ||� � } ||� � s|V � �2��dS | V � dS )ay Generate filenames from an argument. :param arg: Parameter from the command-line. :param predicate: Predicate to use to filter out filenames. If the predicate returns ``True`` we will exclude the filename, otherwise we will yield it. By default, we include every filename generated. :returns: Generator of paths N)�os�path�isdir�walk�tuple�join�remove)r r �root�sub_directories�files� directory�joined�filenames �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/discover_files.py�_filenames_fromr s � � � �"