Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/pylint/testutils/__pycache__/configuration_test.cpython-39.pyc
Ðазад
a n�h( � @ s� d Z ddlmZ ddlZddlZddlZddlZddlmZ ddl m Z ddlmZ e Z eee f Zddddd �d d�ZdZd Zdddd�dd�Zdddd�dd�Zdddd�dd�Zefdddd�dd�ZdS ) z,Utility functions for configuration testing.� )�annotationsN)�Path)�Any)�Runz str | Path�str)�tested_configuration_file�suffix�default�returnc C s~ |}t | �}|j|j� d|� � }|�� rlt|dd��}|�� }W d � n1 sT0 Y t�d|� nt�d||� |S )zKReturn the expected value from the file if it exists, or the given default.�.�utf8)�encodingNz %s exists.z%s not found, using '%s'.)r �parent�stem�exists�open�read�logging�info)r r r �expected�pathZexpected_result_path�f� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/pylint/testutils/configuration_test.py�get_expected_or_default s &r Zfunctional_appendZfunctional_remove�PylintConfiguration)�configuration_path�default_configurationr c C s� t �|�}t| ddd�}t�|�}|�� D ]�\}}|tkr^|�� D ]\}}|| |7 <