Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/__pycache__/main.cpython-37.pyc

B

A!p\��@s�dZddlmZddlZddlZddlZddlmZddlm	Z	m
Z
ddlmZddl
mZddlmZd	ed
ddd
dddd�fdeddddgdd�fdedddddd�fded dd!d"�fd#ed$dd%dd&d�fd'ed(dd)d"�fd*ed+d,d-d.d/�fd0ed1dd2d3d4d5�fd6ed7d,d-d8d/�fd9ed:d;dd<d=d>d?�fd@dAdBdCdDdEdF�fdGdHd
dIdJdKdL�ffZdMdN�ZGdOdP�dPe�ZedQk�r�eejdRd��dS)Sz[
  %prog [options] <packages>

  create UML diagrams for classes and modules in <packages>
�)�print_functionN)�ConfigurationMixIn)�Linker�project_from_files)�DiadefsHandler)�writer)�insert_default_optionszfilter-mode�fZPUB_ONLY�mode�string�storez<mode>a�filter attributes and functions according to
    <mode>. Correct modes are :
                            'PUB_ONLY' filter all non public attributes
                                [DEFAULT], equivalent to PRIVATE+SPECIAL_A
                            'ALL' no filter
                            'SPECIAL' filter Python special functions
                                except constructor
                            'OTHER' filter protected and private
                                attributes)�short�default�dest�type�action�metavar�help�class�c�appendz<class>�classeszbcreate a class diagram with all classes related to <class>; this uses by default the options -ASmy)r
rrrrrzshow-ancestors�az
<ancestor>�intzAshow <ancestor> generations of ancestor classes not in <projects>)r
rrrrz
all-ancestors�Az0show all ancestors off all classes in <projects>)r
rrzshow-associated�sz<association_level>zGshow <association_level> levels of associated classes not in <projects>zall-associated�Sz:show recursively all associated off all associated classeszshow-builtin�b�
store_trueFz4include builtin objects in representation of classes)r
rrrzmodule-names�mZynz[yn]z0include module name in representation of classes)r
rrrrzonly-classnames�kzMdon't show attributes and methods in the class boxes; this disables -f values�output�o�
output_format�dotz<format>z4create a *.<format> output file if format available.)r
rrrrr�ignoreZcsvz<file[,file...]>�
black_list)�CVSzPAdd files or directories to the blacklist. They should be base names, not paths.)rrrrr�project��pz<project name>zset the project name.)rrr
rrcCsLytjddgtjtjd�Wn*tk
rFtd|�t�d�YnXdS)z5check if we need graphviz for different output formatr$z-V)�stdout�stderrz~The output format '%s' is currently not available.
Please install 'Graphviz' to have other output formats than 'dot' or 'vcg'.� N)�
subprocess�call�PIPE�OSError�print�sys�exit)r#�r5�F/opt/alt/python37/lib/python3.7/site-packages/pylint/pyreverse/main.py�_check_graphviz_available�sr7c@s$eZdZdZeZdd�Zdd�ZdS)�Runz<base class providing common behaviour for pyreverse commandscCsHtj|td�t�|��}|jjdkr4t|jj�t�	|�
|��dS)N)�usage)r$�vcg)r�__init__�__doc__rZload_command_line_configuration�configr#r7r3r4�run)�self�argsr5r5r6r;�szRun.__init__c	Cs�|st|���dStj�dt���z<t||jj	|jj
d�}t|dd�}t|j�}|�
||�}Wdtj�d�X|jjdkr�t�|j��|�nt�|j��|�dS)z"checking arguments and run project�r)�project_namer&T)�tagNr:)r2rr3�path�insert�os�getcwdrr=r(r&rrZget_diadefs�popr#rZ	VCGWriter�writeZ	DotWriter)r?r@r(Zlinker�handlerZdiadefsr5r5r6r>�s"
zRun.runN)�__name__�
__module__�__qualname__r<�OPTIONS�optionsr;r>r5r5r5r6r8�s	r8�__main__rA)r<�
__future__rrFr.r3Z
pylint.configrZpylint.pyreverse.inspectorrrZpylint.pyreverse.diadefslibrZpylint.pyreverserZpylint.pyreverse.utilsr�dictrNr7r8rK�argvr5r5r5r6�<module>s�		
)