Your IP : 3.149.29.190
�
c��fb= � �� � d dl Z d dlZd dlZd dlmZ g d�Zdadddddd�d�Zd � Zd
� Z d� Z
d� Zd
� Zd� Z
d� Zd� Z G d� d� � Zddd�d�Zdd�Zd� Zedk r e� � dS dS )� N)�GenericAlias)�input�close�nextfile�filename�lineno�
filelineno�fileno�isfirstline�isstdin� FileInput�hook_compressed�hook_encodedF� �r��mode�openhook�encoding�errorsc � � t rt j rt d� � �t | ||||||�� � a t S )Nzinput() already activer )�_state�_file�RuntimeErrorr
)�files�inplace�backupr r r r s �0/opt/alt/python311/lib64/python3.11/fileinput.pyr r N sQ � �� � 5�&�,� 5��3�4�4�4�
�u�g�v�D�8� (��9� 9� 9�F��M� c �J � t } d a | r| � � � d S d S �N)r r )�states r r r ] s2 � ���E�
�F�� �
���
�
�
�
�
�� r c �b � t st d� � �t � � � S �Nzno active input())r r r � r r r r e s0 � �� � 0��.�/�/�/��?�?���r c �b � t st d� � �t � � � S r$ )r r r r% r r r r s s0 � �� � 0��.�/�/�/��?�?���r c �b � t st d� � �t � � � S r$ )r r r r% r r r r | s. � ��
� 0��.�/�/�/��=�=�?�?�r c �b � t st d� � �t � � � S r$ )r r r r% r r r r � s2 � ��
� 0��.�/�/�/������r c �b � t st d� � �t � � � S r$ )r r r
r% r r r
r
� s. � �� � 0��.�/�/�/��=�=�?�?�r c �b � t st d� � �t � � � S r$ )r r r r% r r r r � s2 � �� � 0��.�/�/�/������r c �b � t st d� � �t � � � S r$ )r r r r% r r r r � s0 � �� � 0��.�/�/�/��>�>���r c � � e Zd Z dddddd�d�Zd� Zd� Zd � Zd
� Zd� Zd� Z d
� Z
d� Zd� Zd� Z
d� Zd� Zd� Zd� Zd� Z ee� � ZdS )r
NFr r r c �� � t |t � � r|f}nZt |t j � � rt j |� � f}n*|�t
j dd � }|sd}nt |� � }|| _ || _ || _
d | _ d | _ d | _
d| _ d| _ d | _ d| _ d | _ || _ || _ t
j j r(d|vr$|�"|� dd l}|� dt2 d� � |dvrt5 d � � �|| _ |� d
d� � | _ |r/|rt5 d� � �t= |� � st5 d
� � �|| _ d S )N� )�-r F�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) �selfr r r r r r r rJ s 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�!����r c �. � | � � � d S r! �r �rS s r �__del__zFileInput.__del__� � � ��
�
�����r c �V � | � � � d| _ d S # d| _ w xY w)Nr% )r r<