+
    ¿ù3iª  ã                   ó†   € R t ^ RIt^ RIt^ RIHtHtHt ^RIHt ^RI	H
t
 R
R R lltRR R llt]R	8X  d
   ]! 4        R# R# )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.

N)ÚIterableÚListÚOptional)Ú__version__)ÚUniversalDetectorc                ó€   € V ^8„  d   QhR\         \        ,          R\        R\        R\        R\        \        ,          /# )é   ÚlinesÚnameÚminimalÚshould_rename_legacyÚreturn)r   ÚbytesÚstrÚboolr   )Úformats   "Ú8/usr/lib/python3/dist-packages/chardet/cli/chardetect.pyÚ__annotate__r      sB   € ÷  ñ  Ü”E�?ð ä
ð ô ð ô ð	 ô
 Œc…]ñ ó    c                ó>  € \        VR7      pV  F3  p\        V4      pVP                  V4       VP                  '       g   K3   M	  VP	                  4        VP
                  pV'       d
   VR,          # VR,          '       d   V RVR,           RVR,           2# V R2# )aˆ  
Return a string describing the probable encoding of a file or
list of strings.

:param lines: The lines to get the encoding of.
:type lines: Iterable of bytes
:param name: Name of file or collection of lines
:type name: str
:param should_rename_legacy:  Should we rename legacy encodings to
                              their more modern equivalents?
:type should_rename_legacy:   ``bool``
)r   Úencodingz: z with confidence Ú
confidencez: no result)r   Ú	bytearrayÚfeedÚdoneÚcloseÚresult)r	   r
   r   r   ÚuÚliner   s   &&&&   r   Údescription_ofr      s—   € ô$ 	Ð/CÔD€AÛˆÜ˜‹ˆØ	�‰ˆtŒà�6�6Š6Ùñ ð ‡G�G„IØ�X‰X€FßØ�jÕ!Ð!Øˆj×ÔØ��r˜& Õ,Ð-Ð->¸vÀlÕ?SÐ>TÐUÐUØˆV�;ÐÐr   c                óT   € V ^8„  d   QhR\         \        \        ,          ,          RR/# )r   Úargvr   N)r   r   r   )r   s   "r   r   r   :   s#   € ÷ 2
ñ 2
ŒxœœS�	Õ"ð 2
¨dñ 2
r   c           
     óV  € \         P                  ! RR7      pVP                  RR\         P                  ! R4      R\        P
                  P                  .R7       VP                  RR	R
R7       VP                  RRRR
R7       VP                  RRR\         2R7       VP                  V 4      pVP                   Fi  pVP                  4       '       d   \        R\        P                  R7       \        \        W3P                  VP                  VP                   R7      4       Kk  	  R# )zÏ
Handles command line arguments and gets things started.

:param argv: List of arguments, as if specified on the command-line.
             If None, ``sys.argv[1:]`` is used instead.
:type argv: list of str
zATakes one or more file paths and reports their detected encodings)ÚdescriptionÚinputz@File whose encoding we would like to determine. (default: stdin)ÚrbÚ*)ÚhelpÚtypeÚnargsÚdefaultz	--minimalz*Print only the encoding to standard outputÚ
store_true)r'   Úactionz-lz--legacyz,Rename legacy encodings to more modern ones.z	--versionÚversionz	%(prog)s )r,   r-   z£You are running chardetect interactively. Press CTRL-D twice at the start of a blank line to signal the end of your input. If you want help, run chardetect --help
)Úfile)r   r   N)ÚargparseÚArgumentParserÚadd_argumentÚFileTypeÚsysÚstdinÚbufferr   Ú
parse_argsr$   ÚisattyÚprintÚstderrr   r
   r   Úlegacy)r!   ÚparserÚargsÚfs   &   r   Úmainr>   :   s  € ô ×$Ò$àOô€Fð
 ×ÑØØOÜ×Ò˜tÓ$ØÜ—‘×!Ñ!Ð"ð ô ð ×ÑØØ9Øð ô ð
 ×ÑØØØ;Øð	 ô ð ×ÑØ˜I°¼;¸-Ð/Hð ô ð ×Ñ˜TÓ"€Dà�ZŒZˆØ�8‰8�:Š:Üðô —Z‘Zõô 	ÜØ—6‘6 4§<¡<ÀdÇkÁkôö	
ó r   Ú__main__)r4   FF)N)Ú__doc__r/   r3   Útypingr   r   r   Ú r   Úuniversaldetectorr   r   r>   Ú__name__© r   r   Ú<module>rF      s>   ðñó Û 
ß +Ñ +å Ý 1÷ ÷D2
ðj ˆzÔÙ†Fñ r   