AlkantarClanX12
Current Path : /lib/python2.7/site-packages/pip/utils/ |
Current File : //lib/python2.7/site-packages/pip/utils/encoding.pyc |
� ��abc @ s� d d l Z d d l Z d d l Z e j d f e j d f e j d f e j d f e j d f e j d f e j d f g Z e j d � Z d � Z d S( i����Nt utf8t utf16s utf16-bes utf16-let utf32s utf32-bes utf32-les coding[:=]\s*([-\w.]+)c C s� x: t D]2 \ } } | j | � r | t | � j | � Sq Wxl | j d � d D]W } | d d !d k rQ t j | � rQ t j | � j � d j d � } | j | � SqQ W| j t j t � � S( s� Check a bytes string for a BOM to correctly detect the encoding Fallback to locale.getpreferredencoding(False) like open() on Python3s i i i t #t ascii( t BOMSt startswitht lent decodet splitt ENCODING_REt searcht groupst localet getpreferredencodingt False( t datat bomt encodingt line( ( s6 /usr/lib/python2.7/site-packages/pip/utils/encoding.pyt auto_decode s ""( t codecsR t ret BOM_UTF8t BOM_UTF16t BOM_UTF16_BEt BOM_UTF16_LEt BOM_UTF32t BOM_UTF32_BEt BOM_UTF32_LER t compileR R ( ( ( s6 /usr/lib/python2.7/site-packages/pip/utils/encoding.pyt <module> s