3 ”Reã@s–ddlZddlZddlZddlZddlmZerDddlmZmZm Z ej dfej dfej dfej dfejdfejd fejd fgZejd ƒ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²x0tD](\}}|j|ƒr|t|ƒd…j|ƒSqWxf|jdƒdd…D]P}|dd…dkrFtj|ƒrFtj|ƒ}|dk szt‚|jƒdjdƒ}|j|ƒSqFW|jt j dƒp®t j ƒƒ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-python36-pip-20.2.4-5.el8.x86_64/opt/alt/python36/lib/python3.6/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