î
)Ú X  ã               @   s&   d  Z  d d l m Z d d „  Z d S)z2.3.0é    )Úversion_infoc             C   sŠ   t  d k  r t |  t ƒ s7 t  d k rF t |  t ƒ rF t d ƒ ‚ n  d d l m } | j ƒ  } | j ƒ  | j	 |  ƒ | j
 ƒ  | j S)Né   r   z-Expected a bytes object, not a unicode objecté   )Úuniversaldetector)r   r   )r   r   )r   Ú
isinstanceÚunicodeÚbytesÚ
ValueErrorÚ r   ÚUniversalDetectorÚresetÚfeedÚcloseÚresult)ÚaBufr   Úu© r   úR/home/ubuntu/projects/ifolica/build/requests/requests/packages/chardet/__init__.pyÚdetect   s    

r   N)Ú__version__Úsysr   r   r   r   r   r   Ú<module>   s   