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/compat.pyc

Ic@sdZddkZddklZlZlZlZlZlZl	Z	l
Z
ddklZlZl
Z
lZddkZdefdYZdefdYZd	efd
YZdefdYZdS(
s(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
iN(tDuplicateSectionErrortNoSectionErrort
NoOptionErrortInterpolationMissingOptionErrortInterpolationDepthErrortInterpolationSyntaxErrortDEFAULTSECTtMAX_INTERPOLATION_DEPTH(tErrortInterpolationErrortMissingSectionHeaderErrortParsingErrortRawConfigParsercBseZdedZdZdZdZdZdZ	dZ
dZddZdd	Z
d
ZdZdZhed
6ed6ed6ed6ed6ed6ed6ed6ZdZdZdZdZdZdZRS(cCs<|tjotdntid|d||_dS(NsCustom dict types not supportedtdefaultstoptionxformsource(tdictt
ValueErrortinit	INIConfigtdata(tselfR
t	dict_type((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt__init__s
cCs
|iS(N(tlower(Rt	optionstr((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytoptionxform#scCs=h}|ii}x$|iD]}|i|||<qW|S(N(Rt	_defaultst_optionst_compat_get(Rtdtsecobjtname((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR
&s
cCs
t|iS(s3Return a list of section names, excluding [DEFAULT](tlistR(R((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytsections-scCsX|idjotd|n|i|ot|n|ii|dS(sCreate a new section in the configuration.

        Raise DuplicateSectionError if a section by the specified name
        already exists.  Raise ValueError if name is DEFAULT or any of
        its case-insensitive variants.
        tdefaultsInvalid section name: %sN(RRthas_sectionRRt_new_namespace(Rtsection((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytadd_section1s
	cCs.y|i|tSWntj
otSXdS(s~Indicate whether the named section is present in the configuration.

        The DEFAULT section is not acknowledged.
        N(RtTruetKeyErrortFalse(RR%((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR#Bs
cCs;yt|i|SWntj
ot|nXdS(s9Return a list of option names for the given section name.N(R RR(R(RR%((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytoptionsMscCsg}t|to
|g}nx^|D]V}yt|}Wntj
o
q*nX|i||ii||iq*W|S(sRead and parse a filename or a list of filenames.

        Files that cannot be opened are silently ignored; this is
        designed so that you can specify a list of potential
        configuration file locations (e.g. current directory, user's
        home directory, systemwide directory), and all existing
        configuration files in the list will be read.  A single
        filename may also be given.
        (t
isinstancet
basestringtopentIOErrortappendRt_readfptclose(Rt	filenamest
files_readtfilenametfp((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytreadTs


cCs|ii|dS(sLike read() but the argument must be a file-like object.

        The `fp' argument must have a `readline' method.  Optional
        second argument is the `filename', which if not given, is
        taken from fp.name.  If fp has no `name' attribute, `<???>' is
        used.
        N(RR0(RR5R4((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytreadfpkscCs|i|pt|n|dj	o||jo||}ny|i|}|i|SWn"tj
ot||nXdS(N(R#RtNoneRRR(R(RR%toptiontvarstvaluetsec((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytgetus
c	CskyEg}x4|i|D]%}|i||i||fqW|SWntj
ot|nXdS(N(RR/R=R(R(RR%tanstopt((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytitemss#cCst|i||S(N(tintR=(RR%R9((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytgetintscCst|i||S(N(tfloatR=(RR%R9((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytgetfloatst1tyesttruetont0tnotfalsetoffcCsJ|i||}|i|ijotd|n|i|iS(NsNot a boolean: %s(R=Rt_boolean_statesR(RR%R9tv((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt
getbooleanscCs^y|i|}Wntj
ot|nXy||tSWntj
otSXdS(s=Check for the existence of a given option in a given section.N(RR(RR'R)(RR%R9R<((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt
has_optionscCs;y||i||<Wntj
ot|nXdS(sSet an option.N(RR(R(RR%R9R;((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytsetscCs|it|idS(s?Write an .ini-format representation of the configuration state.N(twritetstrR(RR5((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRRscCsey|i|}Wntj
ot|nXy||||=dSWntj
odSXdS(sRemove an option.iiN(RR(R(RR%R9R<((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt
remove_optionscCs#|i|ptS|i|=tS(sRemove a file section.(R#R)RR'(RR%((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytremove_sections
N(t__name__t
__module__R8RRRR
R!R&R#R*R6R7R=R@RBRDR'R)RMRORPRQRRRTRU(((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRs*							
									
t
ConfigDictcBs eZdZdZdZRS(s*Present a dict interface to a ini section.cCs||_||_||_dS(N(tcfgR%R:(RRYR%R:((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRs		cCsOy#ti|i|i||iSWn%ttfj
ot|nXdS(N(RR=RYR%R:RRR((Rtkey((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt__getitem__s#(RVRWt__doc__RR[(((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRXs	tConfigParsercBs/eZeddZdZeddZRS(cCs|tjo!|i|ot|n|i|}ti||||}|o|St|||}|i||||SdS(sGet an option value for a given section.

        All % interpolations are expanded in the return values, based on the
        defaults passed into the constructor, unless the optional argument
        `raw' is true.  Additional substitutions may be provided using the
        `vars' argument, which must be a dictionary whose contents overrides
        any pre-existing defaults.

        The section DEFAULT is special.
        N(RR#RRRR=RXt_interpolate(RR%R9trawR:R;R((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR=scCs|}t}xj|ob|d8}d|joFy||}Wqttj
o%}t||||idqtXqPqW|iddjot|||n|S(Nis%(ii(RR(RtargstfindR(RR%R9trawvalR:R;tdepthte((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR^s

"c
CsA|tjo!|i|ot|n|djot|i|}nPg}x3|i|D]$}||jo|i|qfqfW|i|id|jo|i	dnt
|||}|o*g}|D]}||||fq~Sg}	|D])}|	||i|||||fq
~	SdS(sReturn a list of tuples with (name, value) for each option
        in the section.

        All % interpolations are expanded in the return values, based on the
        defaults passed into the constructor, unless the optional argument
        `raw' is true.  Additional substitutions may be provided using the
        `vars' argument, which must be a dictionary whose contents overrides
        any pre-existing defaults.

        The section DEFAULT is special.
        RVN(RR#RR8R RR/textendtkeystremoveRXR^(
RR%R_R:R*txRt_[1]R9t_[2]((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR@s$


#N(RVRWR)R8R=R^R@(((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR]s	tSafeConfigParsercBsSeZeidZeidZdZdZeidiZ	dZ
RS(s
%\(([^)]+)\)ss%[^%]|%$cCst|tptdn|iid|}|ii|}|o td||ifnt	i
||||dS(Nsoption values must be stringsts1invalid interpolation syntax in %r at position %d(R+R,t	TypeErrort
_interpvar_retsubt_badpercent_retsearchRtstartR]RQ(RR%R9R;t	tmp_valuetm((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRQ%scCs/g}|i|||||ddi|S(NiRl(t_interpolate_sometjoin(RR%R9RbR:tL((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyR^3scCs|tjot|||nx|o|id}|djo|i|dS|djo|i|| ||}n|dd!}|djo|id|d}q&|djo|i|}	|	djot||d|n|	id}
||	i}y||
}Wn(t	j
ot
||||
nXd|jo$|i||||||dq|i|q&t||dt|q&WdS(Nt%iiit(s'bad interpolation variable reference %rs+'%' must be followed by '%' or '(', found: (
RRRaR/t_interpvar_matchR8RtgrouptendR(RRutrepr(RR9taccumtrestR%tmapRctptcRttvarRN((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRu;sD








	
(RVRWtretcompileRnRpRQR^tmatchRzRu(((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyRk!s		(R\RR]RRRRRRRRRR	R
RRtobjectRRXRk(((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt<module>s:	"N
y~or5J={Eeu磝QkᯘG{?+]ן?wM3X^歌>{7پK>on\jyR g/=fOroNVv~Y+NGuÝHWyw[eQʨSb>>}Gmx[o[<{Ϯ_qF vMIENDB`