Edit File: clconfpars.cpython-37.opt-1.pyc
B �e� � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlZd dlZd dlmZm Z d dl mZ d dlZG dd� de �ZG d d � d e �ZdZd d d�Zd!dd�Zi Zd"dd�Zd#dd�Zdd� Zdd� Zeddddg�Zdd� ZdS )$� )�absolute_import)�division)�print_functionN)�groupby�filterfalse)� namedtuplec @ s e Zd Zdd� ZdS )�WebConfigParsingErrorc C s || _ d S )N)�message)�selfr � r ��/builddir/build/BUILDROOT/alt-python27-cllib-3.3.5-1.el8.cloudlinux.x86_64/opt/alt/python37/lib/python3.7/site-packages/clcommon/clconfpars.py�__init__ s zWebConfigParsingError.__init__N)�__name__� __module__�__qualname__r r r r r r s r c @ s e Zd Zdd� ZdS )�WebConfigMissingc C s || _ d S )N)r )r r r r r r s zWebConfigMissing.__init__N)r r r r r r r r r s r ZasectionFc C s� t jdd dd�}|rt|_|rJt| d��}|�� �t�� d�}W d Q R X nt| d��}|�� }W d Q R X |j dt � d�| | d � t|jt d ��S )NTF)Zallow_no_valueZ interpolation�strict�rb�replace�r�[z] )�source)Zsection) �configparserZConfigParser�strZoptionxform�open�read�decode�localeZgetpreferredencodingZread_string�SECHEAD�dict�items)�pathZcase_sensitiveZignore_bad_encodingZconfig�f�rawr r r �load"