-í
ë¶<c       sf   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	 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 |  i d d ƒ } t i i | | ƒ } y t | t	 ƒ  t
 ƒ  d ƒ } Wn# t j
 o } t t  |  <t Sn Xy t | i ƒ  ƒ } Wn t j
 o f  } n Xt | ƒ d j o t d | i | i f ‚ n x9 | D]1 } t | ƒ o t d | i | i f ‚ n qü W| t  |  <y | i ƒ  } Wn t j
 o n8 Xx3 | D]+ } t i i | ƒ o | t i | <n qh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