File: //usr/lib/python2.7/dist-packages/mercurial/config.pyc
ó
ÛXc @@ sh d d l m Z d d l Z d d l Z d d l m Z d d l m Z m Z d e f d „ ƒ YZ
d S( i ( t absolute_importNi ( t _( t errort utilt configc B@ s¶ e Z d g d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d „ Z
d „ Z d „ Z d
„ Z
d „ Z d d
„ Z d „ Z d d d d „ Z d d d d „ Z RS( c C@ sn i | _ i | _ g | _ | | _ | rj x( | j D] } | | j ƒ | j | <q4 W| j j ƒ | _ n d S( N( t _datat _sourcet _unsett
_includepathst copy( t selft datat includepathst k( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt __init__ s c C@ s
t | ƒ S( N( R ( R
( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR s c C@ s
| | j k S( N( R ( R
t section( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt __contains__ s c C@ s | | j j | i ƒ k S( N( R t get( R
R t item( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt hasitem! s c C@ s | j j | i ƒ S( N( R R ( R
R ( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt __getitem__# s c c@ s x | j ƒ D] } | Vq
Wd S( N( t sections( R
t d( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt __iter__% s c C@ s¿ xW | j D]L \ } } | | k r
| | j | k r
| j | | =| j | | f =q
q
WxK | D]C } | | k r‰ t j ƒ | j | <n | j | j | j | ƒ qa W| j j | j ƒ d S( N( R R R R t sortdictt update( R
t srct st n( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR ( s
c C@ s | j j | i ƒ j | | ƒ S( N( R R ( R
R R t default( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR 2 s c C@ sV y7 | j | | } | j | | ƒ } | | | | f SWn t k
rQ | | f SXd S( s” return a tuple allowing restore to reinstall a previous value
The main reason we need it is because it handles the "no data" case.
N( R t sourcet KeyError( R
R R t valueR ( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyt backup5 s
c C@ s | j j | | f d ƒ S( Nt ( R R ( R
R R ( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR A s c C@ s t | j j ƒ ƒ S( N( t sortedR t keys( R
( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR C s c C@ s | j j | i ƒ j ƒ S( N( R R t items( R
R ( ( s4 /usr/lib/python2.7/dist-packages/mercurial/config.pyR% E s R"