python (3.11.7)

(root)/
lib/
python3.11/
encodings/
__pycache__/
__init__.cpython-311.pyc

edZddlZddlZddlmZiZdZdgZejZGdde	e
Zd	Zd
Z
eje
ejdkrdZejedSdS)
a2 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() -> codecs.CodecInfo object
    The getregentry() API must return a CodecInfo object with encoder, decoder,
    incrementalencoder, incrementaldecoder, streamwriter and streamreader
    attributes 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.

N)aliasesz--unknown--*ceZdZdS)CodecRegistryErrorN)__name__
__module____qualname__F/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/encodings/__init__.pyrr(sDrrcJt|trt|d}g}d}|D]c}|s|dkrE|r|r|d|r||d}ad}dd|S)ae 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.

    asciiF._T)
isinstancebytesstrisalnumappendisasciijoin)encodingcharspunctcs    r
normalize_encodingr+s(E""*x))EE
99;;	!s((
"
"S!!!yy{{
 QEEEE
775>>rct|t}|tur|St|}t|p-t|dd}|||g}n|g}|D]5}|rd|vr		t
d|ztd}n#t$rY2wxYwd}	|j	}n#t$rd}YnwxYw|dt|<dS|}t|tj
sdt|cxkrdks"ntd|jd	|jd
t%|drt%|dr|dt%|dr}|d
t%|d
r`t|dkr|dt%|dr0t|dkr=|d5t%|ds td|jd	|jdt|dks|d;|ddt|z
z|jdddfzz
}tj
|}|t|<	|}|D]}	|	tvr
|t|	<n#t$rYnwxYw|S)Nrrz
encodings.r)fromlistlevelzmodule "z" (z) failed to registerrzincompatible codecs in module "))N)_cacheget_unknownr_aliasesreplace
__import___import_tailImportErrorgetregentryAttributeErrorrcodecs	CodecInfolenrr__file__callablesplit
getaliases)
rentry
norm_encodingaliased_encodingmodnamesmodnamemodr1codecaliasesaliass
          r
search_functionrBGsw
JJx**EH'x00M||M22E||M$9$9#s$C$CDD#$!#"?	#..
	\G3l#$&&&C
E			
D	o{xt
KMMEeV-..
)CJJ####!####$$(+clll&DEE
Ea!!	E%(););	E!H %();); !H %();); JJNNuQx3HU1X<N<N3JJNNuQx3HU1X<N<N3$$(+clll&DEE
Eu::a<<58+WaE

l+s|/A/A#q/I/I!/L.NNNE %(F8*~~''"	*	*EH$$")	*



Ls6B55
CCCCC$K
KKwin32c	ddl}d|z}||krddl}|jSdS#t
$rYdSwxYw)Nrzcp%s)_winapiGetACPencodings.mbcsmbcsr1r0)rrEansi_code_page	encodingss    r
_alias_mbcsrKs{	NNN#gnn&6&66N>))%%%% ~11333*)			DD	s=A
AA)__doc__r3sysrrr)r+r/r,LookupErrorSystemErrorrrrBregisterplatformrKrrr
<module>rRs<






	u?					k			8RRRj   <7
			FOK     !r