mς
­fIc           @   sΰ   d  Z  d k Z d e i f d     YZ d e e i f d     YZ d e e i f d     YZ d   Z e i e d	   Z e i	 h  d
 d <d d
 <d d <d d < h  Z x$ e i   D] \ Z Z e e e <qΒ Wd S(   s    Test Codecs (used by test_charmapcodec)

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

(c) Copyright 2000 Guido van Rossum.

Nt   Codecc           B   s    t  Z d d  Z d d  Z RS(   Nt   strictc         C   s   t  i | | t  S(   N(   t   codecst   charmap_encodet   inputt   errorst   encoding_map(   t   selfR   R   (    (    t+   /mit/python/lib/python2.4/test/testcodec.pyt   encode   s    c         C   s   t  i | | t  S(   N(   R   t   charmap_decodeR   R   t   decoding_map(   R   R   R   (    (    R   t   decode   s    (   t   __name__t
   __module__R	   R   (    (    (    R   R       s   t   StreamWriterc           B   s   t  Z RS(   N(   R   R   (    (    (    R   R      s   t   StreamReaderc           B   s   t  Z RS(   N(   R   R   (    (    (    R   R      s   c           C   s   t    i t    i t t f S(   N(   R    R	   R   R   R   (    (    (    R   t   getregentry   s    i   ix   u   abct   abci   iy   u    (   t   __doc__R   R    R   R   R   t   make_identity_dictt   rangeR   t   updatet   NoneR   t   itemst   kt   v(	   R   R   R   R   R    R   R   R   R   (    (    R   t   ?   s   	
	1	 