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/python310/lib64/python3.10/distutils/__pycache__/text_file.cpython-310.opt-2.pyc
o

�=?h�0�@s$	ddlZddlZGdd�d�ZdS)�Nc@sreZdZ	dddddddd�Zddd�Zdd	�Zd
d�Zddd
�Zddd�Zddd�Z	dd�Z
dd�Zdd�ZdS)�TextFile�r�strict)�strip_comments�skip_blanks�	lstrip_ws�	rstrip_ws�
join_lines�
collapse_join�errorsNcKs�	|dur
|dur
td��|j��D]}||vr!t||||�qt|||j|�q|��D]
}||jvr<td|��q/|durG|�|�n	||_||_d|_g|_	dS)Nz7you must supply either or both of 'filename' and 'file'zinvalid TextFile option '%s'r)
�RuntimeError�default_options�keys�setattr�KeyError�open�filename�file�current_line�linebuf)�selfrrZoptions�opt�r�:/opt/alt/python310/lib64/python3.10/distutils/text_file.py�__init__Ns"
�
zTextFile.__init__cCs(	||_tj|jd|jd�|_d|_dS)N�r)rr)r�iorrrr)rrrrrros
z
TextFile.opencCs&	|j}d|_d|_d|_|��dS�N)rrr�close)rrrrrrvszTextFile.closecCsjg}|dur	|j}|�|jd�t|ttf�r"|�dt|��n|�d|�|�t|��d�|�S)Nz, z
lines %d-%d: z	line %d: �)r�appendr�
isinstance�list�tuple�str�join)r�msg�lineZoutmsgrrr�	gen_errors
zTextFile.gen_errorcCstd|�||���)Nzerror: )�
ValueErrorr(�rr&r'rrr�error�szTextFile.errorcCs"	tj�d|�||�d�dS)Nz	warning: �
)�sys�stderr�writer(r*rrr�warn�s z
TextFile.warncCs�	|jr|jd}|jd=|Sd}	|j��}|dkrd}|jrX|rX|�d�}|dkr,n,|dks8||ddkrR|ddkr@dpAd}|d|�|}|��dkrQqn|�d	d�}|jr�|r�|durh|�d
�|S|j	ro|�
�}||}t|jt
�r�|jdd|jd<n%|j|jdg|_n|dur�dSt|jt
�r�|jdd|_n|jd|_|jr�|jr�|��}n|jr�|�
�}n|jr�|��}|dks�|dkr�|jr�q|jr�|ddkr�|dd�}q|dd�dkr�|dd�d}q|S)
N���rT�#rr�\r,z\#z2continuation line immediately precedes end-of-file���z\
)rr�readliner�find�strip�replacer	r0r
�lstripr!rr"rr�rstripr)rr'Zbuildup_line�posZeolrrrr5�sl




	�

�

zTextFile.readlinecCs(	g}	|��}|dur|S|�|�qr)r5r )r�linesr'rrr�	readliness
�zTextFile.readlinescCs	|j�|�dSr)rr )rr'rrr�
unreadlineszTextFile.unreadline)NNr)
�__name__�
__module__�__qualname__r
rrrr(r+r0r5r=r>rrrrr
s&:�
	!
	


x
r)r-rrrrrr�<module>s