D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
usr
/
lib
/
python3.6
/
site-packages
/
iniparse
/
__pycache__
/
Filename :
compat.cpython-36.opt-1.pyc
back
Copy
3 �C�]o/ � @ s� d Z ddlZddlmZmZmZmZmZmZm Z m Z ddlmZmZm Z mZ ddlZddlmZ G dd� de�ZG d d � d e�ZG dd� de�ZG d d� de�ZdS )a( Compatibility interfaces for ConfigParser Interfaces of ConfigParser, RawConfigParser and SafeConfigParser should be completely identical to the Python standard library versions. Tested with the unit tests included with Python-2.3.4 The underlying INIConfig object can be accessed as cfg.data � N� )�DuplicateSectionError�NoSectionError� NoOptionError�InterpolationMissingOptionError�InterpolationDepthError�InterpolationSyntaxError�DEFAULTSECT�MAX_INTERPOLATION_DEPTH)�Error�InterpolationError�MissingSectionHeaderError�ParsingError)�inic @ s� e Zd Zdefdd�Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zd+dd�Zd,dd�Z dd� Zdd� Zdd� Zddddddddd�Zdd � Zd!d"� Zd#d$� Zd%d&� Zd'd(� Zd)d*� ZdS )-�RawConfigParserNc C s$ |t krtd��tj|| d�| _d S )NzCustom dict types not supported)�defaultsZoptionxformsource)�dict� ValueErrorr Z INIConfig�data)�selfr Z dict_type� r �/usr/lib/python3.6/compat.py�__init__ s zRawConfigParser.__init__c C s |j � S )N)�lower)r Z optionstrr r r �optionxform% s zRawConfigParser.optionxformc C s. i }| j j}x|jD ]}|j|�||<