HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/cli/chardetect.pyc
�
^�Rec@@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(t__version__(tPY2(tUniversalDetectorustdincC@s�t�}x4|D],}t|�}|j|�|jrPqqW|j�|j}trt|jtj	�d�}n|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
    uignoreuencodingu{0}: {1} with confidence {2}u
confidenceu{0}: no resultN(Rt	bytearraytfeedtdonetclosetresultRtdecodetsystgetfilesystemencodingtformat(tlinestnametutlineR
((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el9.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/cli/chardetect.pytdescription_ofs
	

	
	
c
C@s�tjdd�}|jddddtjd�dd	d
trHtjn	tjjg�|jddd
ddjt	��|j
|�}xU|jD]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                      encodingsuinputthelpu^File whose encoding we would like to determine.                               (default: stdin)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(targparsetArgumentParsertadd_argumenttFileTypeRRtstdintbufferRRt
parse_argstinputtisattytprinttstderrRR(targvtparsertargstf((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el9.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/cli/chardetect.pytmain6s			u__main__(t__doc__t
__future__RRRRRtpip._vendor.chardetRtpip._vendor.chardet.compatRt%pip._vendor.chardet.universaldetectorRRtNoneR+t__name__(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el9.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/chardet/cli/chardetect.pyt<module>s