Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/__pycache__/fileinput.cpython-311.opt-2.pyc
�

�,db=����	ddlZddlZddlZddlmZgd�Zdadddddd�d�Zd	�Zd
�Z	d�Z
d�Zd
�Zd�Z
d�Zd�ZGd�d��Zddd�d�Zdd�Zd�Zedkre��dSdS)�N)�GenericAlias)�input�close�nextfile�filename�lineno�
filelineno�fileno�isfirstline�isstdin�	FileInput�hook_compressed�hook_encodedF��r��mode�openhook�encoding�errorsc	��	trtjrtd���t|||||||���atS)Nzinput() already activer)�_state�_file�RuntimeErrorr
)�files�inplace�backuprrrrs       �0/opt/alt/python311/lib64/python3.11/fileinput.pyrrNsQ����5�&�,�5��3�4�4�4�
�u�g�v�D�8� (��9�9�9�F��M�c�J�	t}da|r|���dSdS�N)rr)�states rrr]s2����E�
�F���
���
�
�
�
�
��rc�b�	tstd���t���S�Nzno active input())rrr�rrrres0����0��.�/�/�/��?�?���rc�b�	tstd���t���Sr$)rrrr%rrrrss0����0��.�/�/�/��?�?���rc�b�	tstd���t���Sr$)rrrr%rrrr|s.���
�0��.�/�/�/��=�=�?�?�rc�b�	tstd���t���Sr$)rrr	r%rrr	r	�s2���
�0��.�/�/�/������rc�b�	tstd���t���Sr$)rrr
r%rrr
r
�s.����0��.�/�/�/��=�=�?�?�rc�b�	tstd���t���Sr$)rrrr%rrrr�s2����0��.�/�/�/������rc�b�	tstd���t���Sr$)rrrr%rrrr�s0����0��.�/�/�/��>�>���rc��eZdZ	dddddd�d�Zd�Zd�Zd	�Zd
�Zd�Zd�Z	d
�Z
d�Zd�Zd�Z
d�Zd�Zd�Zd�Zd�Zee��ZdS)r
NFrrrc���t|t��r|f}nZt|tj��rtj|��f}n*|�t
jdd�}|sd}nt|��}||_||_	||_
d|_d|_d|_
d|_d|_d|_d|_d|_||_||_t
jjr(d|vr$|�"|� ddl}|�dt2d��|dvrt5d	���||_|�d
d��|_|r/|rt5d���t=|��st5d
���||_dS)N�)�-rF�bz"'encoding' argument not specified.�)r�rbz*FileInput opening mode must be 'r' or 'rb'r�wz4FileInput cannot use an opening hook in inplace modez#FileInput openhook must be callable) �
isinstance�str�os�PathLike�fspath�sys�argv�tuple�_files�_inplace�_backup�_savestdout�_output�	_filename�_startlineno�_filelinenor�_isstdin�_backupfilename�	_encoding�_errors�flags�warn_default_encoding�warnings�warn�EncodingWarning�
ValueError�_mode�replace�_write_mode�callable�	_openhook)	�selfrrrrrrrrJs	         r�__init__zFileInput.__init__�s����e�S�!�!�
	%��H�E�E�
��r�{�
+�
+�	%��Y�u�%�%�(�E�E��}���������
%�����e���������
���������������������
���
�#���!������
�I�+�	.��4���H�$4��9I��O�O�O��M�M�>�)�1�
.�
.�
.��{�"�"��I�J�J�J���
��<�<��S�1�1����	H��
Y� �!W�X�X�X��H�%�%�
H� �!F�G�G�G�!����rc�.�|���dSr!�r�rSs r�__del__zFileInput.__del__�����
�
�����rc�V�	|���d|_dS#d|_wxYw)Nr%)rr<rWs rrzFileInput.close�s2��	��M�M�O�O�O��D�K�K�K��"�D�K����s��	(c��|Sr!r%rWs r�	__enter__zFileInput.__enter__�����rc�.�|���dSr!rV)rS�type�value�	tracebacks    r�__exit__zFileInput.__exit__�rYrc��|Sr!r%rWs r�__iter__zFileInput.__iter__�r]rc��	|���}|r|xjdz
c_|S|jst�|����K�NTr.)�	_readlinerCr�
StopIterationr�rS�lines  r�__next__zFileInput.__next__�sY��	��>�>�#�#�D��
�� � �A�%� � ����:�
$�#�#��M�M�O�O�O�	rc��|j}d|_|r|t_|j}d|_	|r|���|j}d|_	|`n#t$rYnwxYw	|r|js|���|j	}d|_	|r,|j
s%tj|��n#t$rYnwxYwd|_dS#|j	}d|_	|r,|j
s%tj|��n#t$rYnwxYwd|_wxYw#|j}d|_	|`n#t$rYnwxYw	|r|js|���|j	}d|_	|r,|j
s%tj|��n#t$rYnwxYwd|_nH#|j	}d|_	|r,|j
s%tj|��n#t$rYnwxYwd|_wxYwwxYw)NF)r?r9�stdoutr@rrrg�AttributeErrorrDrEr>r6�unlink�OSError)rS�
savestdout�output�file�backupfilenames     rrzFileInput.nextfiles~���%�
�����	$�#�C�J�������	&��
��������:�D��D�J�
��N�N��!�
�
�
���
����

&��!��
�!��J�J�L�L�L�!%�!5��'+��$�!�)�$�,�)���>�2�2�2�2��"�(�(�(�D�D�(���� %��
�
�
��
"&�!5��'+��$�!�)�$�,�)���>�2�2�2�2��"�(�(�(�D�D�(���� %��
�%�%�%�%��!�:�D��D�J�
��N�N��!�
�
�
���
����

&��!��
�!��J�J�L�L�L�!%�!5��'+��$�!�)�$�,�)���>�2�2�2�2��"�(�(�(�D�D�(���� %��
�
��
"&�!5��'+��$�!�)�$�,�)���>�2�2�2�2��"�(�(�(�D�D�(���� %��
�%�%�%�%�%�%�%�%s��D�A�
A!� A!�%C�B.�.
B;�:B;�D�C4�3D�4
D�>D�D�D�G�D"�!G�"
D/�,G�.D/�/G�3F�G�'E<�;G�<
F	�G�F	�	G�G�,G�G�
G�G�
G�G�Gc��	|���}|r|xjdz
c_|S|js|S|����Frf)rgrCrrris  r�readlinezFileInput.readline"sX��	��>�>�#�#�D��
�� � �A�%� � ����:�
����M�M�O�O�O�	rc��|js
d|jvrdSdS|jd|_|jdd�|_|���|_d|_d|_d|_d|_d|jvr
|j	pd}nd}|jdkrUd	|_d|jvr+ttjd
tj��|_ntj|_d|_�nr|j
�r�tj|j��|jpdz|_	tj|j��n#t$$rYnwxYwtj|j|j��t)|j|j||j�
��|_	tj|j�����j}tjtjztjz}t9td��r|tjz}tj|j||��}tj||j||j�
��|_ 	tj!|j|��nG#t$$rYn;wxYw#t$$r*t)|j|j||j�
��|_ YnwxYwtj"|_#|j t_"n�|j$r`|j	�&|�$|j|j��|_nZ|�$|j|j|j	|j�
��|_n't)|j|j||j�
��|_|jj%|_&|�&��S)Nr0rrrr.F�localer/z<stdin>�bufferTz.bak�rr�O_BINARY)'r<rNrArrBrCrrDrErF�getattrr9�stdinr=r6r8r>rorp�rename�openrG�fstatr
�st_mode�O_CREAT�O_WRONLY�O_TRUNC�hasattrr{�fdopenrPr@�chmodrmr?rRrvrg)rSr�permr�fds     rrgzFileInput._readline-sb���{�	��d�j� � ��s��r���Q�����k�!�"�"�o��� �K�K�M�M��������
���
� ����d�j� � ��~�1��H�H��H��>�S� � �&�D�N��d�j� � �$�S�Y��#�)�D�D��
�
� �Y��
� �D�M�M��}�)
j��I�d�n�-�-���1G��H��$���I�d�2�3�3�3�3�������D������	�$�.�$�*>�?�?�?�!�$�"6��
�+3�D�L�J�J�J��
���8�D�J�$5�$5�$7�$7�8�8�@�D�
�:���3�b�j�@�D��r�:�.�.�,����+�������t�<�<�B�#%�9�R��1A�6>�t�|�$U�$U�$U�D�L�������6�6�6�6��"������������P�P�P�#'����8H�19�$�,�$P�$P�$P�D�L�L�L�P����$'�:�� �!�\��
�
��>�	j��~�-�%)�^�^�D�N�D�J�%O�%O��
�
�%)�^�^� �N�D�J���X\�Xd�&4�&f�&f��
�
�"&�d�n�d�j�8�\`�\h�!i�!i�!i�D�J���,����~�~���s6�D0�0
D=�<D=�0I/�I�
I,�+I,�/1J#�"J#c��|jSr!)rArWs rrzFileInput.filenamevs
���~�rc� �|j|jzSr!)rBrCrWs rrzFileInput.linenoys��� �4�#3�3�3rc��|jSr!�rCrWs rr	zFileInput.filelineno|s����rc�j�|jr+	|j���S#t$rYdSwxYwdS)N���)rr
rMrWs rr
zFileInput.filenosN���:�	�
��z�(�(�*�*�*���
�
�
��r�r�
�����2s�"�
0�0c��|jdkS)Nr.r�rWs rrzFileInput.isfirstline�s����1�$�$rc��|jSr!)rDrWs rrzFileInput.isstdin�s
���}�r�NFr)�__name__�
__module__�__qualname__rTrXrr\rbrdrkrrvrgrrr	r
rr�classmethodr�__class_getitem__r%rrr
r
�s4������
�-"��D�4��-"�-"�-"�-"�-"�^������������������&�&�&�<���G �G �G �R���4�4�4� � � ����%�%�%����$��L�1�1���rr
rzc�@�|�d|vrd}tj�|��d}|dkrddl}|�||��}n4|dkrddl}|�||��}nt	||||���Sd|vrtj|||���}|S)Nr0rxr.z.gzrz.bz2rz)	r6�path�splitext�gzipr�bz2�BZ2File�io�
TextIOWrapper)rrrr�extr��streamr�s        rrr�s�����C�t�O�O���
�'�
�
�8�
$�
$�Q�
'�C�
�e�|�|��������8�T�*�*���	�����
�
�
����X�t�,�,����H�d�X�f�E�E�E�E��$����!�&�8�F�K�K�K���Mrc������fd�}|S)Nc�*��t||�����S)Nrz)r)rrrrs  ��rrzhook_encoded.<locals>.openhook�s����H�d�X�f�E�E�E�Err%)rrrs`` rrr�s-����F�F�F�F�F�F��Orc	�.�ddl}d}d}|�tjdd�d��\}}|D]\}}|dkrd}|dkr|}�t|||���D]}}|d	d�d
kr
|dd	�}|d	d�dkr
|dd	�}t	dt��t
��t��t��rd
pd|fz���~t	dt��t
��t��fz��dS)NrFr.zib:z-iTz-b)rrr��
�
z%d: %s[%d]%s %s�*rz
%d: %s[%d])	�getoptr9r:r�printrrr	r)r�rr�opts�args�o�arjs        r�_testr��s=���M�M�M��G�
�F����s�x����|�U�3�3�J�D�$��!�!���1���9�9��g���9�9�q�f���d�G�F�;�;�;�G�G������9����T�#�2�#�Y�d�����9����T�#�2�#�Y�d�
��6�8�8�X�Z�Z����#.�=�=�#8�S�#>�B��#F�F�	G�	G�	G�	G�	�,�&�(�(�H�J�J�
���=�
=�>�>�>�>�>r�__main__r�r!)r�r9r6�typesr�__all__rrrrrrr	r
rrr
rrr�r�r%rr�<module>r�s���A�F
�	�	�	�������������������
��
��d���
�
�
�
�
������������������� � � ����c2�c2�c2�c2�c2�c2�c2�c2�L15�T������&����
?�
?�
?��z���	�E�G�G�G�G�G��r

ZeroDay Forums Mini