| Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/__pycache__/clconfpars.cpython-311.pyc |
�
^Se� � �� � d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZm Z d dl
mZ d dlZ G d� de
� � Z G d � d
e
� � ZdZdd
�Zdd�Zi Zdd�Zdd�Zd� Zd� Z edg d�� � Zd� ZdS )� )�absolute_import)�division)�print_functionN)�groupby�filterfalse)�
namedtuplec � � e Zd Zd� ZdS )�WebConfigParsingErrorc � � || _ d S �N��message��selfr s ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.8-1.el8.cloudlinux.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/clcommon/clconfpars.py�__init__zWebConfigParsingError.__init__ �
� ������ N��__name__�
__module__�__qualname__r � r r r
r
�# � � � � � �� � � � r r
c � � e Zd Zd� ZdS )�WebConfigMissingc � � || _ d S r r
r s r r zWebConfigMissing.__init__ r r Nr r r r r r r r r �asectionFc �" � t j dd d�� � }|rt |_ |rbt | d� � 5 }|� � � � t j � � d� � }d d d � � n# 1 swxY w Y n<t | d� � 5 }|� � � }d d d � � n# 1 swxY w Y |� dt � d�|z | � � � t |� t �
� � � � S )NTF)�allow_no_value�
interpolation�strict�rb�replace�r�[z]
)�source)�section)
�configparser�ConfigParser�str�optionxform�open�read�decode�locale�getpreferredencoding�read_string�SECHEAD�dict�items)�path�case_sensitive�ignore_bad_encoding�config�f�raws r �loadr<