mò £ƒEc@sdZdkZdkZdkZdkZhZdZdgZdZeiZ dei ei fd„ƒYZ d„Z d„ZeieƒdS( sÝ Standard "encodings" Package Standard Python encoding modules are stored in this package directory. Codec modules must have names corresponding to normalized encoding names as defined in the normalize_encoding() function below, e.g. 'utf-8' must be 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 normalized encoding names as defined by normalize_encoding(). Written by Marc-Andre Lemburg (mal@lemburg.com). (c) Copyright CNRI, All Rights Reserved. NO WARRANTY. Ns --unknown--t*s . 0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz tCodecRegistryErrorcBstZRS(N(t__name__t __module__(((t8/mirror/zmath/src/Python-2.4.4/Lib/encodings/__init__.pyR+scCsEt|ƒtijo|idƒ}ndi|itƒiƒƒS(s´ Normalize an encoding name. Normalization works as follows: all non-alphanumeric characters except the dot used for Python package names are collapsed and replaced with a single underscore, e.g. ' -;#' becomes '_'. Leading and trailing underscores are removed. Note that encoding names should be ASCII only; if they do use non-ASCII characters, these must be Latin-1 compatible. slatin-1t_N( ttypetencodingttypest UnicodeTypetencodetjoint translatet_norm_encoding_maptsplit(R((Rtnormalize_encoding/s c Csti|tƒ} | tj o| Snt|ƒ}ti|ƒpti|iddƒƒ}|dj o||g}n |g}xX|D]J}|pq‹nyt |tƒtƒtƒ}Wntj oq‹XPq‹Wd}y |i}Wntj o d}nX|djodt|