-í
ë¶<c       s~     d  Z    d k Z d k Z d k Z ! h  Z " d Z $ d e i e i f d „  ƒ  YZ ( d „  Z	 Z e i
 e	 ƒ d S(   sí   Standard "encodings" Package

    Standard Python encoding modules are stored in this package
    directory.

    Codec modules must have names corresponding to standard lower-case
    encoding names with hyphens mapped to underscores, e.g. 'utf-8' is
    implemented by the module 'utf_8.py'.

    Each codec module must export the following interface:

    * getregentry() -> (encoder, decoder, stream_reader, stream_writer)
    The getregentry() API must return callable objects which adhere to
    the Python Codec Interface Standard.

    In addition, a module may optionally also define the following
    APIs which are then used by the package's codec search function:

    * getaliases() -> sequence of encoding name strings to use as aliases

    Alias names returned by getaliases() must be standard encoding
    names as defined above (lower-case, hyphens converted to
    underscores).

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

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

Ns   --unknown--s   CodecRegistryErrorc      s   $ t  Z & RS(   N(   s   __name__s
   __module__(    (    (    s(   /usr/lib/python2.2/encodings/__init__.pys   CodecRegistryError$ s   	c    sü  ( + t  i |  t ƒ } , | t j	 o - | Sn 0 |  i d d ƒ } 1 t i i | | ƒ } 2 y" 3 t | t	 ƒ  t
 ƒ  d ƒ } Wn, 4 t j
 o } 6 t t  |  <7 t Sn X: y ; t | i ƒ  ƒ } Wn < t j
 o = f  } n X> t | ƒ d j o  ? t d | i | i f ‚ n B xB | DB ]7 } C t | ƒ o  D t d | i | i f ‚ n q2WI | t  |  <M y N | i ƒ  } Wn O t j
 o
 P nD XR x< | DR ]1 } S t i i | ƒ o T | t i | <n q¹WW | Sd  S(   Ns   -s   _s   *i   s#   module "%s" (%s) failed to registers'   incompatible codecs in module "%s" (%s)(   s   _caches   gets   encodings   _unknowns   entrys   replaces   modnames   aliasess
   __import__s   globalss   localss   mods   ImportErrors   whys   Nones   tuples   getregentrys   AttributeErrors   lens   CodecRegistryErrors   __name__s   __file__s   objs   callables
   getaliasess   codecaliasess   aliass   has_key(   s   encodings   aliass   modnames   objs   codecaliasess   entrys   whys   mod(    (    s(   /usr/lib/python2.2/encodings/__init__.pys   search_function( s<   " 
 	$
 	(   s   __doc__s   codecss   aliasess
   exceptionss   _caches   _unknowns   LookupErrors   SystemErrors   CodecRegistryErrors   search_functions   register(   s   search_functions   _unknowns   codecss
   exceptionss   _caches   CodecRegistryErrors   aliases(    (    s(   /usr/lib/python2.2/encodings/__init__.pys   ? s   		"2