Ñò Á¡Ic@sÖdZddkZddklZlZlZlZlZlZl Z l Z ddkl Z l Z l Z lZddkZdefd„ƒYZdefd„ƒYZd efd „ƒYZd efd „ƒ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 iÿÿÿÿN(tDuplicateSectionErrortNoSectionErrort NoOptionErrortInterpolationMissingOptionErrortInterpolationDepthErrortInterpolationSyntaxErrort DEFAULTSECTtMAX_INTERPOLATION_DEPTH(tErrortInterpolationErrortMissingSectionHeaderErrort ParsingErrortRawConfigParsercBsýeZded„Zd„Zd„Zd„Zd„Zd„Z d„Z d„Z dd„Z dd „Z d „Zd „Zd „Zhed 6ed6ed6ed6ed6ed6ed6ed6Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs<|tjotdƒ‚ntid|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 |iƒS(N(tlower(Rt optionstr((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt optionxform#scCs=h}|ii}x$|iD]}|i|ƒ||' 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||ƒfƒqW|SWntj ot|ƒ‚nXdS(N(RR/R=R(R(RR%tanstopt((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytitems€s#cCst|i||ƒƒS(N(tintR=(RR%R9((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytgetint‰scCst|i||ƒƒS(N(tfloatR=(RR%R9((s3/usr/lib/python2.6/site-packages/iniparse/compat.pytgetfloatŒst1tyesttruetont0tnotfalsetoffcCsJ|i||ƒ}|iƒ|ijotd|‚n|i|iƒS(NsNot a boolean: %s(R=Rt_boolean_statesR(RR%R9tv((s3/usr/lib/python2.6/site-packages/iniparse/compat.pyt getboolean’scCs^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_option˜scCs;y||i|| s : " §N