Your IP : 216.73.216.213
B
a�\� � @ sJ d dl Z d dlmZ G dd� de�ZG dd� de�Zdd� Zdd
d�ZdS )
� N)�
is_virtualenvc @ sz e Zd ZdZdd� Zddd�Zddd �Zdd
d�Zddd
�Zddd�Z d dd�Z
d!dd�Zd"dd�Zdd� Z
d#dd�ZdS )$�SingleFilesz�
When prospector is run in 'single file mode' - that is,
the argument is a python module rather than a directory -
then we'll use this object instead of the FoundFiles to
give all the functionality needed to check a single file.
c C s || _ || _d S )N)�files�rootpath)�selfr r � r �B/opt/alt/python37/lib/python3.7/site-packages/prospector/finder.py�__init__ s zSingleFiles.__init__Tc C s. |r$t j�|�}|tt jj| j�kS || jkS )N)�os�path�abspath�mapr )r � checkpathr r r r �_check s zSingleFiles._checkFc C s | � ||�S )N)r )r �filepathr �even_if_ignoredr r r �check_module s zSingleFiles.check_modulec C s | � ||�S )N)r )r r r r r r r �
check_package! s zSingleFiles.check_packagec C s | � ||�S )N)r )r r r r r r r �
check_file$ s zSingleFiles.check_filec c s* x$| j D ]}|rtj�|�n|V qW d S )N)r r
r r )r r �include_ignoredr r r r �iter_file_paths'