N
φωO5c       sΔ   k  Z  k Z k l e Z e Z e Z	 e
 Z e Z h  Z d  Z d d  Z d d  Z d d  Z d d  Z d d  Z d d  Z d   Z d d	  Z d
 f  d     YZ d f  d     YZ d S(   i   c    sp   |  | f } y t | SWn t j
 o n Xt |  |  } t t  t j o t i	   n | t | <| Sd  S(   N(
   s   patterns   flagss   keys   _caches   KeyErrors   compiles   values   lens	   _MAXCACHEs   clear(   s   patterns   flagss   keys   values,   /var/tmp/python-root/usr/lib/python1.5/re.pys   _cachecompile s    
i    c    s   t  |  |  i |  Sd  S(   N(   s   _cachecompiles   patterns   flagss   matchs   string(   s   patterns   strings   flagss,   /var/tmp/python-root/usr/lib/python1.5/re.pys   match* s    c    s   t  |  |  i |  Sd  S(   N(   s   _cachecompiles   patterns   flagss   searchs   string(   s   patterns   strings   flagss,   /var/tmp/python-root/usr/lib/python1.5/re.pys   search- s    c    s@   t  |   t  d  j o t |   }  n |  i | | |  Sd  S(   Ns    (   s   types   patterns   _cachecompiles   subs   repls   strings   count(   s   patterns   repls   strings   counts,   /var/tmp/python-root/usr/lib/python1.5/re.pys   sub0 s    c    s@   t  |   t  d  j o t |   }  n |  i | | |  Sd  S(   Ns    (   s   types   patterns   _cachecompiles   subns   repls   strings   count(   s   patterns   repls   strings   counts,   /var/tmp/python-root/usr/lib/python1.5/re.pys   subn5 s    c    s=   t  |   t  d  j o t |   }  n |  i | |  Sd  S(   Ns    (   s   types   patterns   _cachecompiles   splits   strings   maxsplit(   s   patterns   strings   maxsplits,   /var/tmp/python-root/usr/lib/python1.5/re.pys   split: s    c    s   g  } t i d t i } x] |  d rS } | | j o3 | d j o | i d  n | i d |  n | i |  q# Wt i | d  Sd S(   s2   Escape all non-alphanumeric characters in pattern.s   _i    s    s   \000s   \s    N(	   s   results   strings   letterss   digitss   alphanums   patterns   chars   appends   join(   s   patterns   results   alphanums   chars,   /var/tmp/python-root/usr/lib/python1.5/re.pys   escape? s     	  c    s/   h  } t |  | |  } t |  | | |  Sd S(   s>   Compile a regular expression pattern, returning a RegexObject.N(   s
   groupindexs   pcre_compiles   patterns   flagss   codes   RegexObject(   s   patterns   flagss
   groupindexs   codes,   /var/tmp/python-root/usr/lib/python1.5/re.pys   compileJ s     s   RegexObjectc      sh   d   Z  d e d  Z d e d  Z d d  Z d d  Z d d  Z d   Z d	   Z d
   Z	 RS(   Nc    s(   | |  _  | |  _ | |  _ | |  _ d  S(   N(   s   codes   selfs   flagss   patterns
   groupindex(   s   selfs   patterns   flagss   codes
   groupindexs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   __init__V s    			c    s    | t j p | t |  j o t |  } n | | j  o
 | } n |  i i | | | d  } | t j o t Sn t |  |  _	 t
 |  | | | |  Sd S(   s   Scan through string looking for a match to the pattern, returning
        a MatchObject instance, or None if no match was found.i    N(   s   endposs   Nones   lens   strings   poss   selfs   codes   matchs   regss	   _num_regss   MatchObject(   s   selfs   strings   poss   endposs   regss,   /var/tmp/python-root/usr/lib/python1.5/re.pys   search\ s       
i    c    s    | t j p | t |  j o t |  } n | | j  o
 | } n |  i i | | | t  } | t j o t Sn t |  |  _
 t |  | | | |  Sd S(   s}   Try to apply the pattern at the start of the string, returning
        a MatchObject instance, or None if no match was found.N(   s   endposs   Nones   lens   strings   poss   selfs   codes   matchs   ANCHOREDs   regss	   _num_regss   MatchObject(   s   selfs   strings   poss   endposs   regss,   /var/tmp/python-root/usr/lib/python1.5/re.pys   matchm s       
c    s   |  i | | |  d Sd S(   s   Return the string obtained by replacing the leftmost
        non-overlapping occurrences of the pattern in string by the
        replacement repli    N(   s   selfs   subns   repls   strings   count(   s   selfs   repls   strings   counts,   /var/tmp/python-root/usr/lib/python1.5/re.pys   sub} s     c    sδ  | d j  o t d  n | d j o k } | i } n t |  t d  j o- d | j o | d  } n | d  } n d } d } d } g  } t
 |  }	 x| | j  o
 | |	 j oφ |  i | |  }
 |
 o Pn |
 i d  \ } } | | j o
 | j n o% | d } | i | | | ! q¨ n | | j  o | i | | | ! n | i | |
   | } } | | j o" | d } | i | | | ! n | d } q¨ W| i | |  t i | d  | f Sd S(	   s  Return a 2-tuple containing (new_string, number).
        new_string is the string obtained by replacing the leftmost
        non-overlapping occurrences of the pattern in the source
        string by the replacement repl.  number is the number of
        substitutions that were made.i    s   negative substitution counts    s   \c    s   t  |  |  S(   N(   s   pcre_expands   ms   r(   s   ms   rs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   <lambda> s    c    s   | S(   N(   s   r(   s   ms   rs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   <lambda> s    i   N(   s   counts   errors   syss   maxints   types   repls   ns   poss	   lastmatchs   resultss   lens   sources   ends   selfs   searchs   ms   spans   is   js   appends   strings   join(   s   selfs   repls   sources   counts   syss   ns   poss	   lastmatchs   resultss   ends   ms   is   js,   /var/tmp/python-root/usr/lib/python1.5/re.pys   subn sF      


c    sk  | d j  o t d  n | d j o k } | i } n d } d } d } g  } t |  } xρ | | j  oγ |  i | |  }	 |	 o Pn |	 i d  \ }
 } |
 | j o# | | j o Pn | d } qa n | i | | |
 ! |	 i   } | o@ t |  t d  j o | g } n t |  | t |  )n | } } | d } qa W| i | |  | Sd S(   s}   Split the ar{source} string by the occurrences of the pattern,
        returning a list containing the resulting substrings.i    s   negative split counti   s    N(   s   maxsplits   errors   syss   maxints   ns   poss	   lastmatchs   resultss   lens   sources   ends   selfs   searchs   ms   spans   is   js   appends   groupss   gs   types   list(   s   selfs   sources   maxsplits   syss   ns   poss	   lastmatchs   resultss   ends   ms   is   js   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   split° s@      
 
c    s   t  t  t  t  f Sd  S(   N(   s   None(   s   selfs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   __getinitargs__Υ s    c    s   |  i |  i |  i f Sd  S(   N(   s   selfs   patterns   flagss
   groupindex(   s   selfs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   __getstate__Ϊ s    c    s=   | d |  _ | d |  _ | d |  _ t t |  |  _ d  S(   Ni    i   i   (   s
   statetuples   selfs   patterns   flagss
   groupindexs   applys   pcre_compiles   code(   s   selfs
   statetuples,   /var/tmp/python-root/usr/lib/python1.5/re.pys   __setstate__ά s    (
   s   __init__s   Nones   searchs   matchs   subs   subns   splits   __getinitargs__s   __getstate__s   __setstate__(    s,   /var/tmp/python-root/usr/lib/python1.5/re.pys   RegexObjectU s    	,%		s   MatchObjectc      sA   d   Z  d d  Z d d  Z d d  Z d   Z d   Z RS(   Nc    s1   | |  _  | |  _ | |  _ | |  _ | |  _ d  S(   N(   s   res   selfs   strings   poss   endposs   regs(   s   selfs   res   strings   poss   endposs   regss,   /var/tmp/python-root/usr/lib/python1.5/re.pys   __init__γ s
    				c    sq   t  |  t  d  j oE y |  i i | } Wn* t t f j
 o t d | d  n Xn |  i | d Sd S(   s4   Return the start of the substring matched by group gs    s   group "s   " is undefinedi    N(	   s   types   gs   selfs   res
   groupindexs   KeyErrors	   TypeErrors
   IndexErrors   regs(   s   selfs   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   startκ s     i    c    sq   t  |  t  d  j oE y |  i i | } Wn* t t f j
 o t d | d  n Xn |  i | d Sd S(   s2   Return the end of the substring matched by group gs    s   group "s   " is undefinedi   N(	   s   types   gs   selfs   res
   groupindexs   KeyErrors	   TypeErrors
   IndexErrors   regs(   s   selfs   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   endσ s     c    sm   t  |  t  d  j oE y |  i i | } Wn* t t f j
 o t d | d  n Xn |  i | Sd S(   sT   Return a tuple containing the start,end of the substring 
        matched by group gs    s   group "s   " is undefinedN(	   s   types   gs   selfs   res
   groupindexs   KeyErrors	   TypeErrors
   IndexErrors   regs(   s   selfs   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   spanό s     c    s¦   g  } x t d |  i i  d rv } |  i | d d j p |  i | d d j o | i t  n. | i |  i	 |  i | d |  i | d ! q Wt
 |  Sd S(   s;   Return a tuple containing all subgroups of the match objecti   i    N(   s   results   ranges   selfs   res	   _num_regss   gs   regss   appends   Nones   strings   tuple(   s   selfs   results   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   groupss      21c    s  t  |  d j o d f } n g  } x| d r} t |  t d  j oE y |  i i | } Wn* t t	 f j
 o t
 d | d  n Xn t  |  i  | j o t
 d t |  d  nq |  i | d d j p |  i | d d j o | i t  n. | i |  i |  i | d |  i | d ! q/ Wt  |  d j o t |  Sn$ t  |  d j o | d Sn f  Sd S(   s'   Return one or more groups of the match.i    s    s   group "s   " is undefinedi   N(   s   lens   groupss   results   gs   types   selfs   res
   groupindexs   KeyErrors	   TypeErrors
   IndexErrors   regss   strs   appends   Nones   strings   tuple(   s   selfs   groupss   results   gs,   /var/tmp/python-root/usr/lib/python1.5/re.pys   groups*     	  21(   s   __init__s   starts   ends   spans   groupss   group(    s,   /var/tmp/python-root/usr/lib/python1.5/re.pys   MatchObjectβ s    			
	
N(   s   syss   strings   pcres   *s
   IGNORECASEs   Is   LOCALEs   Ls	   MULTILINEs   Ms   DOTALLs   Ss   VERBOSEs   Xs   _caches	   _MAXCACHEs   _cachecompiles   matchs   searchs   subs   subns   splits   escapes   compiles   RegexObjects   MatchObject(    s,   /var/tmp/python-root/usr/lib/python1.5/re.pys   ? s&   	