+
    WBi                         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   ";/usr/lib/python3.14/site-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DA	t666  GGIXXFj!!jr&,-->vl?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-   zYou 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ZZ88:: ZZ 	664<<dkk	
 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   