509318396
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
ó
zfc           @   sI  d  Z  d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z d d d d d d	 d
 d d d d d d d d d d g Z	 e j
 j e j d d ƒ Z e j d e j e j Bƒ Z d „  Z d „  Z dB dC dD dE dF dG f Z d' „  e e d( ƒ Dƒ Z i d) d 6d* d 6d+ d% 6Z d d, „ Z d- „  Z d. „  Z d/ „  Z d dH d0 „  ƒ  YZ d e f d1 „  ƒ  YZ d d d2 d3 „ Z i  Z d d d e  d d4 „ Z! d e  d d d5 „ Z" i  a# i  a$ d6 a% d d7 „ Z& d d8 „ Z' d d9 „ Z( d: „  Z) d; „  Z* d< „  Z+ d= „  Z, d> „  Z- d? „  Z. d@ „  Z/ dA „  Z0 e! Z1 d S(I   sª  Internationalization and localization support.

This module provides internationalization (I18N) and localization (L10N)
support for your Python programs by providing an interface to the GNU gettext
message catalog library.

I18N refers to the operation by which a program is made aware of multiple
languages.  L10N refers to the adaptation of your program, once
internationalized, to the local language and cultural habits.

iÿÿÿÿN(   t   ENOENTt   NullTranslationst   GNUTranslationst   Catalogt   findt   translationt   installt
   textdomaint   bindtextdomaint   bind_textdomain_codesett   dgettextt	   dngettextt   gettextt   lgettextt	   ldgettextt
   ldngettextt	   lngettextt   ngettextt   sharet   localesÊ  
        (?P<WHITESPACES>[ \t]+)                    | # spaces and horizontal tabs
        (?P<NUMBER>[0-9]+\b)                       | # decimal integer
        (?P<NAME>n\b)                              | # only n is allowed
        (?P<PARENTHESIS>[()])                      |
        (?P<OPERATOR>[-*/%+?:]|[><!]=?|==|&&|\|\|) | # !, *, /, %, +, -, <, >,
                                                     # <=, >=, ==, !=, &&, ||,
                                                     # ? :
                                                     # unary and bitwise ops
                                                     # not allowed
        (?P<INVALID>\w+|.)                           # invalid token
    c         c   st   xh t  j t |  ƒ D]T } | j } | d k r4 q n  | j | ƒ } | d k rb t d | ƒ ‚ n  | Vq Wd Vd  S(   Nt   WHITESPACESt   INVALIDs    invalid token in plural form: %st    (   t   ret   finditert   _token_patternt	   lastgroupt   groupt
   ValueError(   t   pluralt   mot   kindt   value(    (    s   /usr/lib64/python2.7/gettext.pyt	   _tokenizeT   s    		c         C   s"   |  r t  d |  ƒ St  d ƒ Sd  S(   Ns#   unexpected token in plural form: %ss   unexpected end of plural form(   R   (   R    (    (    s   /usr/lib64/python2.7/gettext.pyt   _error_   s    s   ||s   &&s   ==s   !=t   <t   >s   <=s   >=t   +t   -t   *t   /t   %c         C   s,   i  |  ]" \ } } | D] } | | “ q q S(    (    (   t   .0t   it   opst   op(    (    s   /usr/lib64/python2.7/gettext.pys
   <dictcomp>m   s   	 i   t   ort   ands   //c         C   sM  d } t  |  ƒ } x& | d k r: | d 7} t  |  ƒ } q W| d k r‡ t |  ƒ \ } } d | | f } | d k ré t d ƒ ‚ qé nb | d k r¦ d	 | | f } nC y t | d
 ƒ } Wn t k
 rØ t | ƒ ‚ n Xd | | f } t  |  ƒ } d } x“ | t k r�t | } | | k  r$Pn  | d k rI| d k rId | } n  t j | | ƒ } t |  | d ƒ \ }	 } d | | |	 f } | } qþ W| | k o¨d k n rºd | } n  | d k rC| d k rCt |  d ƒ \ }
 } | d k rt | ƒ ‚ n  t |  ƒ \ } } d |
 | | f } | d k rCd | } qCn  | | f S(   NR   t   !s   not t   (s   %s(%s)t   )s%   unbalanced parenthesis in plural formt   ns   %s%si
   s   %s%did   i   i   s   (%s)i   s   %s %s %st   ?i    t   :s   %s if %s else %s(   i   i   (   i   i   (   t   nextt   _parseR   t   intR"   t   _binary_opst	   _c2py_opst   get(   t   tokenst   priorityt   resultt   nexttokt   subR    t   jR+   R-   t   rightt   if_truet   if_false(    (    s   /usr/lib64/python2.7/gettext.pyR7   p   sP    


c         C   sA   y t  |  ƒ } Wn* t k
 r< t d |  j j f ƒ ‚ n X|  S(   Ns'   Plural value must be an integer, got %s(   t   roundt	   TypeErrort	   __class__t   __name__(   R3   R+   (    (    s   /usr/lib64/python2.7/gettext.pyt   _as_int¡   s    c         B   sû   e  |  ƒ d k r! e d ƒ ‚ n  y¶ e e |  ƒ ƒ \ } } | rQ e | ƒ ‚ n  d } x[ | D]S } | d k r˜ | d 7} | d k r± e d ƒ ‚ q± q^ | d k r^ | d 8} q^ q^ Wi e d	 6} d
 | | U| d SWn e k
 rö e d ƒ ‚ n Xd S(   s‰   Gets a C expression as used in PO files for plural forms and returns a
    Python function that implements an equivalent expression.
    iè  s"   plural form expression is too longi    R1   i   i   s%   plural form expression is too complexR2   RI   s˜   if 1:
            def func(n):
                if not isinstance(n, int):
                    n = _as_int(n)
                return int(%s)
            t   funcN(   t   lenR   R7   R!   R"   RI   t   RuntimeError(   R   R>   R?   t   deptht   ct   ns(    (    s   /usr/lib64/python2.7/gettext.pyt   c2py©   s&    
c         C   s•  d d l  m } | |  ƒ }  d
 } d } d } d } |  j d ƒ } | d k rp |  | } |  |  }  | | O} n d } |  j d ƒ } | d k r² |  | } |  |  }  | | O} n d } |  j d	 ƒ } | d k rô |  | }	 |  |  }  | | O} n d }	 |  }
 g  } x~ t | d ƒ D]l } | | @s|
 } | | @rE| |	 7} n  | | @r\| | 7} n  | | @rs| | 7} n  | j | ƒ qqW| j ƒ  | S(   Niÿÿÿÿ(   t	   normalizei   i    i   t   @R   t   .t   _i   i   i   (   R   RQ   R   t   ranget   appendt   reverse(   R   RQ   t   COMPONENT_CODESETt   COMPONENT_TERRITORYt   COMPONENT_MODIFIERt   maskt   post   modifiert   codesett	   territoryt   languaget   retR+   t   val(    (    s   /usr/lib64/python2.7/gettext.pyt   _expand_langÍ   sL    






 
 
 
c           B   s�   e  Z d d  „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d „  Z d	 „  Z d
 „  Z d „  Z d „  Z e d d „ Z RS(   c         C   sD   i  |  _  d  |  _ d  |  _ d  |  _ | d  k	 r@ |  j | ƒ n  d  S(   N(   t   _infot   Nonet   _charsett   _output_charsett	   _fallbackR7   (   t   selft   fp(    (    s   /usr/lib64/python2.7/gettext.pyt   __init__ù   s    				c         C   s   d  S(   N(    (   Ri   Rj   (    (    s   /usr/lib64/python2.7/gettext.pyR7     s    c         C   s)   |  j  r |  j  j | ƒ n	 | |  _  d  S(   N(   Rh   t   add_fallback(   Ri   t   fallback(    (    s   /usr/lib64/python2.7/gettext.pyRl     s    	c         C   s   |  j  r |  j  j | ƒ S| S(   N(   Rh   R   (   Ri   t   message(    (    s   /usr/lib64/python2.7/gettext.pyR   
  s    	c         C   s   |  j  r |  j  j | ƒ S| S(   N(   Rh   R   (   Ri   Rn   (    (    s   /usr/lib64/python2.7/gettext.pyR     s    	c         C   s7   |  j  r |  j  j | | | ƒ S| d k r/ | S| Sd  S(   Ni   (   Rh   R   (   Ri   t   msgid1t   msgid2R3   (    (    s   /usr/lib64/python2.7/gettext.pyR     s
    	c         C   s7   |  j  r |  j  j | | | ƒ S| d k r/ | S| Sd  S(   Ni   (   Rh   R   (   Ri   Ro   Rp   R3   (    (    s   /usr/lib64/python2.7/gettext.pyR     s
    	c         C   s#   |  j  r |  j  j | ƒ St | ƒ S(   N(   Rh   t   ugettextt   unicode(   Ri   Rn   (    (    s   /usr/lib64/python2.7/gettext.pyRq   $  s    	c         C   sC   |  j  r |  j  j | | | ƒ S| d k r5 t | ƒ St | ƒ Sd  S(   Ni   (   Rh   t	   ungettextRr   (   Ri   Ro   Rp   R3   (    (    s   /usr/lib64/python2.7/gettext.pyRs   )  s
    	
c         C   s   |  j  S(   N(   Rd   (   Ri   (    (    s   /usr/lib64/python2.7/gettext.pyt   info1  s    c         C   s   |  j  S(   N(   Rf   (   Ri   (    (    s   /usr/lib64/python2.7/gettext.pyt   charset4  s    c         C   s   |  j  S(   N(   Rg   (   Ri   (    (    s   /usr/lib64/python2.7/gettext.pyt   output_charset7  s    c         C   s   | |  _  d  S(   N(   Rg   (   Ri   Ru   (    (    s   /usr/lib64/python2.7/gettext.pyt   set_output_charset:  s    c         C   sÐ   d d  l  } | r |  j p! |  j | j d <t | d ƒ rÌ d | k r] | j d | j d <n  d | k r‹ | rx |  j p~ |  j | j d <n  d | k rª |  j | j d <n  d | k rÌ |  j | j d <qÌ n  d  S(   NiÿÿÿÿRT   t   __contains__R   R   R   R   (	   t   __builtin__Rq   R   t   __dict__t   hasattrRs   R   R   R   (   Ri   Rr   t   namesRy   (    (    s   /usr/lib64/python2.7/gettext.pyR   =  s    N(   RH   t
   __module__Re   Rk   R7   Rl   R   R   R   R   Rq   Rs   Rt   Ru   Rv   Rw   t   FalseR   (    (    (    s   /usr/lib64/python2.7/gettext.pyR   ø   s   												c           B   sS   e  Z d  Z d Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 RS(	   l   Þ* l   •$< c         C   sÛ  t  j } t | d d ƒ } i  |  _ } d „  |  _ | j ƒ  } t | ƒ } | d | d  ƒ d } | |  j k r� | d | d d !ƒ \ } }	 }
 } d	 } nL | |  j k r× | d
 | d d !ƒ \ } }	 }
 } d } n t	 d d | ƒ ‚ xët
 d |	 ƒ D]Ú} | | | |
 |
 d !ƒ \ } } | | } | | | | | d !ƒ \ } } | | } | | k  rˆ| | k  rˆ| | | !} | | | !} n t	 d d | ƒ ‚ | d k rÞd } x/| j ƒ  D]} | j ƒ  } | s×q¹n  | j d ƒ rìq¹n  d } } d | k rN| j d d ƒ \ } } | j ƒ  j ƒ  } | j ƒ  } | |  j | <| } n  | rn|  j | c d | 7<n  | d k r“| j d ƒ d |  _ q¹| d k r¹| j d ƒ } | d j d ƒ d } t | ƒ |  _ q¹q¹Wn  d | k r…| j d ƒ \ } } | j d ƒ } |  j rQt | |  j ƒ } g  | D] } t | |  j ƒ ^ q0} n  xk t t | ƒ ƒ D] } | | | | | f <qdWn: |  j rµt | |  j ƒ } t | |  j ƒ } n  | | | <|
 d 7}
 | d 7} qù Wd S(   s8   Override this method to support alternative .mo formats.t   nameR   c         S   s   t  |  d k ƒ S(   Ni   (   R8   (   R3   (    (    s   /usr/lib64/python2.7/gettext.pyt   <lambda>X  R   s   <Ii   i    s   <4Ii   s   <IIs   >4Is   >IIs   Bad magic numberi   s   File is corruptt   #R5   i   s   
s   content-types   charset=s   plural-formst   ;s   plural=s    N(   t   structt   unpackt   getattrt   _catalogR   t   readRK   t   LE_MAGICt   BE_MAGICt   IOErrort   xrangeRe   t
   splitlinest   stript
   startswitht   splitt   lowerRd   Rf   RP   Rr   RU   (   Ri   Rj   R„   t   filenamet   catalogt   buft   buflent   magict   versiont   msgcountt	   masteridxt   transidxt   iiR+   t   mlent   mofft   mendt   tlent   tofft   tendt   msgt   tmsgt   lastkt   itemt   kt   vR   Ro   Rp   t   x(    (    s   /usr/lib64/python2.7/gettext.pyR7   Q  sx    	"	"	 
 

	
	(	

c         C   s}   t  ƒ  } |  j j | | ƒ } | | k rG |  j rC |  j j | ƒ S| S|  j r` | j |  j ƒ S|  j ry | j |  j ƒ S| S(   N(   t   objectR†   R;   Rh   R   Rg   t   encodeRf   (   Ri   Rn   t   missingR¢   (    (    s   /usr/lib64/python2.7/gettext.pyR   ¥  s    				c         C   ss   t  ƒ  } |  j j | | ƒ } | | k rG |  j rC |  j j | ƒ S| S|  j r` | j |  j ƒ S| j t j ƒ  ƒ S(   N(	   R¨   R†   R;   Rh   R   Rg   R©   R   t   getpreferredencoding(   Ri   Rn   Rª   R¢   (    (    s   /usr/lib64/python2.7/gettext.pyR   ³  s    			c         C   s¡   yV |  j  | |  j | ƒ f } |  j r8 | j |  j ƒ S|  j rQ | j |  j ƒ S| SWnD t k
 rœ |  j r… |  j j | | | ƒ S| d k r• | S| Sn Xd  S(   Ni   (   R†   R   Rg   R©   Rf   t   KeyErrorRh   R   (   Ri   Ro   Rp   R3   R¢   (    (    s   /usr/lib64/python2.7/gettext.pyR   ¾  s    			c         C   s—   yL |  j  | |  j | ƒ f } |  j r8 | j |  j ƒ S| j t j ƒ  ƒ SWnD t k
 r’ |  j r{ |  j j | | | ƒ S| d k r‹ | S| Sn Xd  S(   Ni   (	   R†   R   Rg   R©   R   R«   R¬   Rh   R   (   Ri   Ro   Rp   R3   R¢   (    (    s   /usr/lib64/python2.7/gettext.pyR   Î  s    		c         C   sQ   t  ƒ  } |  j j | | ƒ } | | k rM |  j rC |  j j | ƒ St | ƒ S| S(   N(   R¨   R†   R;   Rh   Rq   Rr   (   Ri   Rn   Rª   R¢   (    (    s   /usr/lib64/python2.7/gettext.pyRq   Ü  s    		
c         C   s~   y  |  j  | |  j | ƒ f } WnW t k
 ry |  j rO |  j j | | | ƒ S| d k rj t | ƒ } qz t | ƒ } n X| S(   Ni   (   R†   R   R¬   Rh   Rs   Rr   (   Ri   Ro   Rp   R3   R¢   (    (    s   /usr/lib64/python2.7/gettext.pyRs   å  s     	(   RH   R}   Rˆ   R‰   R7   R   R   R   R   Rq   Rs   (    (    (    s   /usr/lib64/python2.7/gettext.pyR   L  s   	T						i    c         C   sT  | d  k r t } n  | d  k r‚ g  } x9 d D]1 } t j j | ƒ } | r. | j d ƒ } Pq. q. Wd | k r‚ | j d ƒ q‚ n  g  } xA | D]9 } x0 t | ƒ D]" } | | k r¢ | j | ƒ q¢ q¢ Wq� W| rÛ g  }	 n d  }	 xl | D]d } | d k rþ Pn  t j j	 | | d d |  ƒ }
 t j j
 |
 ƒ rè | rE|	 j |
 ƒ qL|
 Sqè qè W|	 S(	   Nt   LANGUAGEt   LC_ALLt   LC_MESSAGESt   LANGR5   t   Cs   %s.mo(   R­   R®   R¯   R°   (   Re   t   _default_localedirt   ost   environR;   R�   RV   Rc   t   patht   joint   exists(   t   domaint	   localedirt	   languagest   allt   envarRb   t   nelangst   langt   nelangR>   t   mofile(    (    s   /usr/lib64/python2.7/gettext.pyR   ó  s8    		c      	   C   s  | d  k r t } n  t |  | | d d ƒ} | sU | r@ t ƒ  St t d |  ƒ ‚ n  d  } x» | D]³ } | t j j | ƒ f }	 t	 j
 |	 ƒ }
 |
 d  k rÎ t | d ƒ � } t	 j |	 | | ƒ ƒ }
 Wd  QXn  t j |
 ƒ }
 | ró |
 j | ƒ n  | d  k r|
 } qb | j |
 ƒ qb W| S(   NR»   i   s$   No translation file found for domaint   rb(   Re   R   R   R   RŠ   R    R³   Rµ   t   abspatht   _translationsR;   t   opent
   setdefaultt   copyRw   Rl   (   R¸   R¹   Rº   t   class_Rm   R^   t   mofilesR>   RÀ   t   keyt   tRj   (    (    s   /usr/lib64/python2.7/gettext.pyR     s*    	!	c         C   s/   t  |  | d t d | ƒ} | j | | ƒ d  S(   NRm   R^   (   R   t   TrueR   (   R¸   R¹   Rr   R^   R|   RÊ   (    (    s   /usr/lib64/python2.7/gettext.pyR   :  s    t   messagesc         C   s   |  d  k	 r |  a n  t S(   N(   Re   t   _current_domain(   R¸   (    (    s   /usr/lib64/python2.7/gettext.pyR   H  s    	c         C   s)   | d  k	 r | t |  <n  t j |  t ƒ S(   N(   Re   t   _localedirsR;   R²   (   R¸   R¹   (    (    s   /usr/lib64/python2.7/gettext.pyR   O  s    c         C   s&   | d  k	 r | t |  <n  t j |  ƒ S(   N(   Re   t   _localecodesetsR;   (   R¸   R^   (    (    s   /usr/lib64/python2.7/gettext.pyR	   V  s    c         C   sP   y. t  |  t j |  d  ƒ d t j |  ƒ ƒ} Wn t k
 rB | SX| j | ƒ S(   NR^   (   R   RÎ   R;   Re   RÏ   RŠ   R   (   R¸   Rn   RÊ   (    (    s   /usr/lib64/python2.7/gettext.pyR
   ]  s    c         C   sP   y. t  |  t j |  d  ƒ d t j |  ƒ ƒ} Wn t k
 rB | SX| j | ƒ S(   NR^   (   R   RÎ   R;   Re   RÏ   RŠ   R   (   R¸   Rn   RÊ   (    (    s   /usr/lib64/python2.7/gettext.pyR   e  s    c         C   si   y. t  |  t j |  d  ƒ d t j |  ƒ ƒ} Wn% t k
 rU | d k rN | S| Sn X| j | | | ƒ S(   NR^   i   (   R   RÎ   R;   Re   RÏ   RŠ   R   (   R¸   Ro   Rp   R3   RÊ   (    (    s   /usr/lib64/python2.7/gettext.pyR   m  s    c         C   si   y. t  |  t j |  d  ƒ d t j |  ƒ ƒ} Wn% t k
 rU | d k rN | S| Sn X| j | | | ƒ S(   NR^   i   (   R   RÎ   R;   Re   RÏ   RŠ   R   (   R¸   Ro   Rp   R3   RÊ   (    (    s   /usr/lib64/python2.7/gettext.pyR   x  s    c         C   s   t  t |  ƒ S(   N(   R
   RÍ   (   Rn   (    (    s   /usr/lib64/python2.7/gettext.pyR   ƒ  s    c         C   s   t  t |  ƒ S(   N(   R   RÍ   (   Rn   (    (    s   /usr/lib64/python2.7/gettext.pyR   †  s    c         C   s   t  t |  | | ƒ S(   N(   R   RÍ   (   Ro   Rp   R3   (    (    s   /usr/lib64/python2.7/gettext.pyR   ‰  s    c         C   s   t  t |  | | ƒ S(   N(   R   RÍ   (   Ro   Rp   R3   (    (    s   /usr/lib64/python2.7/gettext.pyR   Œ  s    (   s   ||(   s   &&(   s   ==s   !=(   R#   R$   s   <=s   >=(   R%   R&   (   R'   R(   R)   (    (2   t   __doc__R   RÆ   R³   R   Rƒ   t   syst   errnoR    t   __all__Rµ   R¶   t   prefixR²   t   compilet   VERBOSEt   DOTALLR   R!   R"   R9   t	   enumerateR:   R7   RI   RP   Rc   R   R   Re   R   RÃ   R~   R   R   RÎ   RÏ   RÍ   R   R   R	   R
   R   R   R   R   R   R   R   R   (    (    (    s   /usr/lib64/python2.7/gettext.pyt   <module>   s\   &H				1		$	+T§&								