/usr/lib/python3.6/site-packages/iniparse/__pycache__
Edit: /usr/lib/python3.6/site-packages/iniparse/__pycache__/ini.cpython-36.pyc (16454B)
3
C]Q @ s d Z ddlZddlmZmZmZ ddlZddlmZ G dd de Z
G dd d e
ZG d
d de
Zd$ddZ
G dd de
ZG dd de
ZG dd de
ZG dd de Zd%ddZG dd dejZdd Zdd Zd d! ZG d"d# d#ejZdS )&a Access and/or modify INI files
* Compatiable with ConfigParser
* Preserves order of sections & options
* Preserves comments/blank lines/etc
* More conveninet access to data
Example:
>>> from six import StringIO
>>> sio = StringIO('''# configure foo-application
... [foo]
... bar1 = qualia
... bar2 = 1977
... [foo-ext]
... special = 1''')
>>> cfg = INIConfig(sio)
>>> print(cfg.foo.bar1)
qualia
>>> print(cfg['foo-ext'].special)
1
>>> cfg.foo.newopt = 'hi!'
>>> cfg.baz.enabled = 0
>>> print(cfg)
# configure foo-application
[foo]
bar1 = qualia
bar2 = 1977
newopt = hi!
[foo-ext]
special = 1
[baz]
enabled = 0
N )DEFAULTSECTParsingErrorMissingSectionHeaderError)configc @ s2 e Zd ZdZd
ddZdd Zdd Zdd ZdS )LineTypeNc C s |d k r|j d| _d S )N
)stripline)selfr
r /usr/lib/python3.6/ini.py__init__6 s zLineType.__init__c C s | j d k r| j S | j S d S )N)r
to_string)r r r r
__str__<