Hacked By AnonymousFox
�
�܋f� � �T � d Z ddlZddlZddlZddlmZ ddlmZ ddlmZ ddlm Z ddlm
Z
ddlmZ dd l
mZ ej e� � Zd
ede
eef fd�Zd
ede e fd�Zdd�de e dee dede
ej ef fd�Zdedej dedeeef fd�ZdS )z!Config handling logic for Flake8.� N)�Any)�Dict)�List)�Optional)�Tuple)�
exceptions)�
OptionManager�s�returnc �F � t j | � � }|j |j fS )N)�os�stat�st_ino�st_dev)r
�sts �f/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/flake8/options/config.py� _stat_keyr s � � �����B�
�9�b�i��� �pathc �p � t j � d� � } |dk rt |� � nd }n# t $ r d }Y nw xY wt | � � } dD ]�}t j � � }t j � | |� � } |� |d�� � d|v sd|v r|c S �Z# t t
j
f$ r&}t � d||� � Y d }~��d }~ww xY wt j �
| � � }t |� � } | |k s| |k rn|} | }��d S ) N�~T)z setup.cfgztox.iniz.flake8�UTF-8��encoding�flake8zflake8:local-pluginsz"ignoring unparseable config %s: %s)r
r �
expanduserr �OSError�configparser�RawConfigParser�join�read�UnicodeDecodeError�ParsingError�LOG�warning�dirname)
r �home� home_stat�dir_stat� candidate�cfg�cfg_path�e�new_path�new_dir_stats
r �_find_config_filer0 s� � �
�7���c�"�"�D��'+�s�{�{�I�d�O�O�O�� � ��� � � �� � � ����� ����H�$�<�
$�
$�I��.�0�0�C��w�|�|�D�)�4�4�H�
$�����G��4�4�4�
�s�?�?�&<��&C�&C�#�O�O�O� 'D�� '��(A�B�
O�
O�
O����@�(�A�N�N�N�N�N�N�N�N�����
O���� �7�?�?�4�(�(�� ��*�*���8�#�#�|�y�'@�'@���D�#�H�'$�, �4s'