ó vĘ_c@sŪddlZddlZddlZddlZddlmZereddlmZmZm Z nej dfej dfej dfej dfejdfejd fejd fgZejd ƒZd „ZdS( i’’’’N(tMYPY_CHECK_RUNNING(tListtTupletTextsutf-8sutf-16s utf-16-bes utf-16-lesutf-32s utf-32-bes utf-32-lescoding[:=]\s*([-\w.]+)cCsęx:tD]2\}}|j|ƒr|t|ƒj|ƒSqWx„|jdƒd D]o}|dd!dkrQtj|ƒrQtj|ƒ}|dk sšt‚|j ƒdjdƒ}|j|ƒSqQW|jt j t ƒpāt jƒƒS(sŠCheck a bytes string for a BOM to correctly detect the encoding Fallback to locale.getpreferredencoding(False) like open() on Python3s iiit#tasciiN(tBOMSt startswithtlentdecodetsplitt ENCODING_REtsearchtNonetAssertionErrortgroupstlocaletgetpreferredencodingtFalsetsystgetdefaultencoding(tdatatbomtencodingtlinetresult((sM/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/utils/encoding.pyt auto_decodes"(tcodecsRtreRtpip._internal.utils.typingRttypingRRRtBOM_UTF8t BOM_UTF16t BOM_UTF16_BEt BOM_UTF16_LEt BOM_UTF32t BOM_UTF32_BEt BOM_UTF32_LERtcompileR R(((sM/opt/alt/python38/lib/python3.8/site-packages/pip/_internal/utils/encoding.pyts