KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /proc/21571/root/usr/lib64/python2.4/encodings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/21571/root/usr/lib64/python2.4/encodings/__init__.pyc
mò
‚=5Dc@sdZdkZdkZdkZdkZhZdZdgZdZeiZ	dei
eifd„ƒ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__(((t*/usr/lib64/python2.4/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(	ttypetencodingttypestUnicodeTypetencodetjoint	translatet_norm_encoding_maptsplit(R((Rtnormalize_encoding/scCsti|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|<dSnt|ƒƒ}
t|
ƒdjotd|i|if‚nx8|
D]0}t|ƒptd|i|if‚qmqmW|
t|<y|iƒ}Wntj
on1Xx,|D]$}	ti|	ƒp|t|	<qØqØW|
S(Nt.Ris#module "%s" (%s) failed to registers'incompatible codecs in module "%s" (%s)( t_cachetgetRt_unknowntentryRt
norm_encodingt_aliasestreplacetaliased_encodingtNonetmodnamestmodnamet
__import__tglobalstlocalst_import_tailtmodtImportErrortgetregentrytAttributeErrorttupletlenRRt__file__tobjtcallablet
getaliasestcodecaliasestaliasthas_key(RRR"R*RR RR'RR+R((Rtsearch_functionEsV
	+
	



!
(t__doc__tcodecst
exceptionsRtaliasesRRRR
RtLookupErrortSystemErrorRRR-tregister(R-RRRRR/R0RR
RRR1((Rt?s$				L

Anon7 - 2021