??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó
†/–Sc @ s@ d Z d d l Z d d l m Z m Z m Z d d l Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
d
e d „ Z d e f d
„ ƒ YZ
d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d d „ Z d e j f d „ ƒ YZ d „ Z d „ Z d „ Z d e j f d „ ƒ YZ d S( sÚ 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 StringIO 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
iÿÿÿÿN( t DEFAULTSECTt ParsingErrort MissingSectionHeaderErrort LineTypec B s5 e Z d Z d d „ Z d „ Z d „ Z d „ Z RS( c C s% | d k r! | j d ƒ | _ n d S( Ns
( t Nonet stript line( t selfR ( ( s0 /usr/lib/python2.7/site-packages/iniparse/ini.pyt __init__4 s c C s$ | j d k r | j S| j ƒ Sd S( N( R R t to_string( R ( ( s0 /usr/lib/python2.7/site-packages/iniparse/ini.pyt __str__: s c C s0 t | | ƒ r d | j d