| Server IP : 46.245.81.90 / Your IP : 216.73.216.85 Web Server : Apache System : Linux server3ir.xdlhost.com 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64 User : gmparts ( 1037) PHP Version : 8.1.34 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/cloudlinux/venv/lib64/python3.11/site-packages/prospector/__pycache__/ |
Upload File : |
�
1j\ � �P � d dl mZ d dlZd dlZdZdd�Zdd�Zd� Z e� � ZdS )� )�defaultdictN)�blend�BLEND_COMBOSc �< ��
� �pt �d� t t �� � � � D � � }g }| D ]_}|j |j f}d}t �� � D ]&\ �
}||v rd}|�
� |� � �'|s|� |� � �`t |� � D ]l\ �
}t |� � dk r�|� �
�fd��� � |d |vr|� |d � � |dd� D ] } d| _ �
�md � |D � � S )
z�
Given a list of messages on the same line, blend them together so that we
end up with one message per actual problem. Note that we can still return
more than one message here if there are two or more different errors for
the line.
c � � g | ]}g ��S � r )�.0�_s �d/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/prospector/blender.py�
<listcomp>zblend_line.<locals>.<listcomp> s � �8�8�8�!�2�8�8�8� FTr c �R �� �� � | j | j f� � S �N)�index�source�code)�msg�blend_combo_idx�blend_comboss ��r �<lambda>zblend_line.<locals>.<lambda>9 s( �� �L��9�?�?���S�X�&�� � r
)�key� Nc �4 � g | ]}t |d d� � �|��S )�usedF)�getattr)r �ms r r zblend_line.<locals>.<listcomp>M s) � �@�@�@�!�g�a���&?�&?�@�A�@�@�@r
) r �range�lenr r � enumerate�append�sortr )�messagesr �blend_lists�blended�messager �found�blend_combo�
blend_list�now_usedr s ` @r �
blend_liner* s� ��� � �/�<�L�8�8�u�S��%6�%6�7�7�8�8�8�K��G� � $� $���~�w�|�,����,5�l�,C�,C� =� =�(�O�[��k�!�!����O�,�3�3�G�<�<�<�� � $�
�N�N�7�#�#�#��
(1��'=�'=� !� !�#����z�?�?�a�������� � � � � �
�
�
�
�a�=��'�'�
�N�N�:�a�=�)�)�)� #�1�2�2�� !� !�H� �H�M�M� !� A�@�w�@�@�@�@r
c �2 � |pt }t d� � � }| D ]7}||j j |j j � |� � �8g }|� � � D ],}|� � � D ]}|t ||� � z
}��-|S )Nc �* � t t � � S r )r �listr r
r r zblend.<locals>.<lambda>T s � �{�4�'8�'8� r
)r r �location�path�liner �valuesr* )r"