ó
è¾bc           @   s¢   d  Z  d d l Z d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d e j f d „  ƒ  YZ d	 e e j f d
 „  ƒ  YZ d e e j f d „  ƒ  YZ d „  Z d S(   s   Generic Python Character Mapping Codec.

    Use this codec directly rather than through the automatic
    conversion mechanisms supplied by unicode() and .encode().


Written by Marc-Andre Lemburg (mal@lemburg.com).

(c) Copyright CNRI, All Rights Reserved. NO WARRANTY.

iÿÿÿÿNt   Codecc           B   s   e  Z e j Z e j Z RS(    (   t   __name__t
   __module__t   codecst   charmap_encodet   encodet   charmap_decodet   decode(    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR       s   	t   IncrementalEncoderc           B   s#   e  Z d  d d „ Z e d „ Z RS(   t   strictc         C   s    t  j j |  | ƒ | |  _ d  S(   N(   R   R   t   __init__t   mapping(   t   selft   errorsR   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR
      s    c         C   s   t  j | |  j |  j ƒ d S(   Ni    (   R   R   R   R   (   R   t   inputt   final(    (    s'   /usr/lib/python2.7/encodings/charmap.pyR      s    N(   R   R   t   NoneR
   t   FalseR   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR      s   t   IncrementalDecoderc           B   s#   e  Z d  d d „ Z e d „ Z RS(   R	   c         C   s    t  j j |  | ƒ | |  _ d  S(   N(   R   R   R
   R   (   R   R   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR
   !   s    c         C   s   t  j | |  j |  j ƒ d S(   Ni    (   R   R   R   R   (   R   R   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR   %   s    N(   R   R   R   R
   R   R   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR       s   t   StreamWriterc           B   s#   e  Z d  d d „ Z d  d „ Z RS(   R	   c         C   s#   t  j j |  | | ƒ | |  _ d  S(   N(   R   R   R
   R   (   R   t   streamR   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR
   *   s    c         C   s   t  j | | |  j ƒ S(   N(   R    R   R   (   R   R   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR   .   s    N(   R   R   R   R
   R   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR   (   s   t   StreamReaderc           B   s#   e  Z d  d d „ Z d  d „ Z RS(   R	   c         C   s#   t  j j |  | | ƒ | |  _ d  S(   N(   R   R   R
   R   (   R   R   R   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR
   3   s    c         C   s   t  j | | |  j ƒ S(   N(   R    R   R   (   R   R   R   (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR   7   s    N(   R   R   R   R
   R   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyR   1   s   c           C   s:   t  j d d d t j d t j d t d t d t d t ƒ S(	   Nt   namet   charmapR   R   t   incrementalencodert   incrementaldecodert   streamwritert   streamreader(	   R   t	   CodecInfoR    R   R   R   R   R   R   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyt   getregentry<   s    			(   t   __doc__R   R    R   R   R   R   R   (    (    (    s'   /usr/lib/python2.7/encodings/charmap.pyt   <module>   s   	