U vÆ_ã@s–ddlZddlZddlZddlZddlmZerDddlmZmZm Z ej dfej dfej dfej dfejdfejd fejd fgZe d ¡Zd d „ZdS)éN)ÚMYPY_CHECK_RUNNING)ÚListÚTupleÚTextzutf-8zutf-16z utf-16-bez utf-16-lezutf-32z utf-32-bez utf-32-lescoding[:=]\s*([-\w.]+)cCs²tD],\}}| |¡r|t|ƒd… |¡Sq| d¡dd…D]T}|dd…dkrDt |¡rDt |¡}|dk sxt‚| ¡d d¡}| |¡SqD| t   d¡p®t   ¡¡S) zŠCheck a bytes string for a BOM to correctly detect the encoding Fallback to locale.getpreferredencoding(False) like open() on Python3Nó éréó#ÚasciiF) ÚBOMSÚ startswithÚlenÚdecodeÚsplitÚ ENCODING_REÚsearchÚAssertionErrorÚgroupsÚlocaleÚgetpreferredencodingÚsysÚgetdefaultencoding)ÚdataÚbomÚencodingÚlineÚresult©rú‹/builddir/build/BUILDROOT/alt-python38-pip-20.2.4-1.el7.x86_64/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/utils/encoding.pyÚ auto_decodes    ÿr)ÚcodecsrÚrerÚpip._internal.utils.typingrÚtypingrrrÚBOM_UTF8Ú BOM_UTF16Ú BOM_UTF16_BEÚ BOM_UTF16_LEÚ BOM_UTF32Ú BOM_UTF32_BEÚ BOM_UTF32_LEr ÚcompilerrrrrrÚs  ù