PATH:
opt
/
alt
/
python34
/
lib
/
python3.4
/
site-packages
/
pip
/
_vendor
/
requests
/
packages
/
chardet
/
__pycache__
� �Reu � @ sq d Z d d l m Z d d l m Z m Z d d l m Z d d d � Z d d � Z e d k rm e � n d S)a Script which takes one or more file paths and reports on their detected encodings Example:: % chardetect somefile someotherfile somefile: windows-1252 with confidence 0.5 someotherfile: ascii with confidence 1.0 If no paths are provided, it takes its input from stdin. � )�open)�argv�stdin)�UniversalDetectorr c C si t � } x | D] } | j | � q W| j � | j } | d r] d | | d | d f Sd | Sd S)z;Return a string describing the probable encoding of a file.�encodingz%s: %s with confidence %s� confidencez %s: no resultN)r �feed�close�result)�file�name�u�liner � r �K/tmp/pip-ztkk0jow-build/pip/_vendor/requests/packages/chardet/chardetect.py�description_of s r c C so t t � d k r% t t t � � nF xC t d d � D]1 } t | d � � } t t | | � � Wd QXq6 Wd S)N� �rb)�lenr �printr r r )�path�fr r r �main$ s r �__main__N)�__doc__�ior �sysr r �chardet.universaldetectorr r r �__name__r r r r �<module> s
[-] eucjpprober.cpython-34.pyc
[edit]
[-] charsetprober.cpython-34.pyc
[edit]
[-] latin1prober.cpython-34.pyc
[edit]
[-] langthaimodel.cpython-34.pyc
[edit]
[-] chardistribution.cpython-34.pyc
[edit]
[-] euctwfreq.cpython-34.pyc
[edit]
[-] sjisprober.cpython-34.pyc
[edit]
[-] compat.cpython-34.pyc
[edit]
[-] mbcsgroupprober.cpython-34.pyc
[edit]
[-] gb2312prober.cpython-34.pyc
[edit]
[-] jisfreq.cpython-34.pyc
[edit]
[-] codingstatemachine.cpython-34.pyc
[edit]
[-] sbcharsetprober.cpython-34.pyc
[edit]
[-] charsetgroupprober.cpython-34.pyc
[edit]
[-] __init__.cpython-34.pyc
[edit]
[-] hebrewprober.cpython-34.pyc
[edit]
[-] langgreekmodel.cpython-34.pyc
[edit]
[-] langbulgarianmodel.cpython-34.pyc
[edit]
[-] utf8prober.cpython-34.pyc
[edit]
[+]
..
[-] euckrfreq.cpython-34.pyc
[edit]
[-] big5prober.cpython-34.pyc
[edit]
[-] gb2312freq.cpython-34.pyc
[edit]
[-] langhebrewmodel.cpython-34.pyc
[edit]
[-] langcyrillicmodel.cpython-34.pyc
[edit]
[-] universaldetector.cpython-34.pyc
[edit]
[-] mbcssm.cpython-34.pyc
[edit]
[-] chardetect.cpython-34.pyc
[edit]
[-] euctwprober.cpython-34.pyc
[edit]
[-] langhungarianmodel.cpython-34.pyc
[edit]
[-] euckrprober.cpython-34.pyc
[edit]
[-] escsm.cpython-34.pyc
[edit]
[-] sbcsgroupprober.cpython-34.pyc
[edit]
[-] constants.cpython-34.pyc
[edit]
[-] mbcharsetprober.cpython-34.pyc
[edit]
[-] big5freq.cpython-34.pyc
[edit]
[-] jpcntx.cpython-34.pyc
[edit]
[-] cp949prober.cpython-34.pyc
[edit]
[-] escprober.cpython-34.pyc
[edit]