MINI MINI MANI MO

Path : /usr/lib/python2.7/site-packages/chardet/
File Upload :
Current File : //usr/lib/python2.7/site-packages/chardet/chardetect.pyo

ó
V÷¯Uc@skdZddlmZddlmZmZddlmZdd„Zd„Z	e
dkrge	ƒnd	S(
s
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.

iÿÿÿÿ(topen(targvtstdin(tUniversalDetectorRcCsitƒ}x|D]}|j|ƒqW|jƒ|j}|dr]d||d|dfSd|SdS(s;Return a string describing the probable encoding of a file.tencodings%s: %s with confidence %st
confidences
%s: no resultN(Rtfeedtclosetresult(tfiletnametutlineR((s6/usr/lib/python2.7/site-packages/chardet/chardetect.pytdescription_ofs	

	
cCs_ttƒdkr ttƒGHn;x8tdD],}t|dƒ}t||ƒGHWdQXq+WdS(Nitrb(tlenRR
RR(tpathtf((s6/usr/lib/python2.7/site-packages/chardet/chardetect.pytmain#s
t__main__N(t__doc__tioRtsysRRtchardet.universaldetectorRR
Rt__name__(((s6/usr/lib/python2.7/site-packages/chardet/chardetect.pyt<module>
s		

OHA YOOOO