| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/iniparse/ |
Upload File : |
Ñò
‰©nJc @ s1 d Z d d k Z d d k l Z l Z l Z d d k Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ
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 i f d „ ƒ YZ d „ Z d „ Z d „ Z d e i 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!'
>>> print cfg
# configure foo-application
[foo]
bar1 = qualia
bar2 = 1977
newopt = hi!
[foo-ext]
special = 1
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 j o | i d ƒ | _ n d S( Ns
( t Nonet stript line( t selfR ( ( s0 /usr/lib/python2.6/site-packages/iniparse/ini.pyt __init__0 s
c C s&