ok
Direktori : /proc/thread-self/root/usr/lib/python2.7/site-packages/clcommon/ |
Current File : //proc/thread-self/root/usr/lib/python2.7/site-packages/clcommon/clconfpars.pyc |
� b=0Yc @ sb d d l Z d d l Z d Z d e f d � � YZ e d � Z i Z e d � Z d d � Z d S( i����Nt asectiont FakeSecHeadc B s e Z d � Z d � Z RS( c C s | | _ d t d | _ d S( Nt [s ] ( t fpt SECHEADt sechead( t selfR ( ( s7 /usr/lib/python2.7/site-packages/clcommon/clconfpars.pyt __init__ s c C s5 | j r$ z | j SWd d | _ Xn | j j � Sd S( N( R t NoneR t readline( R ( ( s7 /usr/lib/python2.7/site-packages/clcommon/clconfpars.pyR s ( t __name__t __module__R R ( ( ( s7 /usr/lib/python2.7/site-packages/clcommon/clconfpars.pyR s c C sV t j � } | r t | _ n | j d t t | � � d | � t | j d t � � S( NR t filenamet section( t ConfigParsert strt optionxformt readfpR t opent dictt itemsR ( t patht case_sensitivet config( ( s7 /usr/lib/python2.7/site-packages/clcommon/clconfpars.pyt load s "c C su y t | } Wn` t k rp y t | � } t | <Wqq t t j f k rl | s[ � n i } t | <qq Xn X| S( sD Read ini file once (cached) and return its content as dict ( t cachet KeyErrorR t IOErrorR t Error( R t ignore_errorst res( ( s7 /usr/lib/python2.7/site-packages/clcommon/clconfpars.pyt load_once! s c C sQ | s | d } n t | d � } t | d � } g } x� | D]� } | j � } | r� | j d � r� | j d d � \ } } | j � } | | k r� | j | d t | | � d � | j | � q>