AlkantarClanX12
Current Path : /opt/alt/python37/lib64/python3.7/__pycache__/ |
Current File : //opt/alt/python37/lib64/python3.7/__pycache__/fileinput.cpython-37.opt-2.pyc |
B YI~d!9 � @ s� d dl Z d dlZdddddddd d ddd gZdad dd�Zdd� Zdd� Zdd� Zdd� Zdd� Z dd� Z dd � Zdd � ZG dd� d�Z dd� Zd!dd �Zdd� Zedkr�e� dS )"� N�input�close�nextfile�filename�lineno� filelineno�fileno�isfirstline�isstdin� FileInput�hook_compressed�hook_encodedF� �rc C s( t rt jrtd��t| |||||�a t S )Nzinput() already active)�_state�_file�RuntimeErrorr )�files�inplace�backup�bufsize�mode�openhook� r �./opt/alt/python37/lib64/python3.7/fileinput.pyr S s c C s t } d a | r| �� d S )N)r r )�stater r r r a s c C s t std��t �� S )Nzno active input())r r r r r r r r i s c C s t std��t �� S )Nzno active input())r r r r r r r r w s c C s t std��t �� S )Nzno active input())r r r r r r r r � s c C s t std��t �� S )Nzno active input())r r r r r r r r � s c C s t std��t �� S )Nzno active input())r r r r r r r r � s c C s t std��t �� S )Nzno active input())r r r r r r r r � s c C s t std��t �� S )Nzno active input())r r r r r r r r � s c @ s� e Zd Zd(dd�Zdd � Zd d� Zdd � Zdd� Zdd� Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� Zd d!� Zd"d#� Zd$d%� Zd&d'� ZdS ))r NFr r r c C s t |t�r|f}nBt |tj�r,t�|�f}n(|d krBtjdd � }|sLd}nt|�}|| _|| _ || _ |r�dd l}|jdt dd� d | _d | _d | _d| _d| _d | _d| _d | _|dkr�td ��d |kr�dd l}|�dt d� || _|�r |r�td��t|��s td ��|| _d S )N� )�-r z!bufsize is deprecated and ignored� )� stacklevelF)r ZrU�U�rbz=FileInput opening mode must be one of 'r', 'rU', 'U' and 'rb'r z'U' mode is deprecatedz4FileInput cannot use an opening hook in inplace modez#FileInput openhook must be callable)� isinstance�str�os�PathLike�fspath�sys�argv�tuple�_files�_inplace�_backup�warnings�warn�DeprecationWarning�_savestdout�_output� _filename�_startlineno�_filelinenor �_isstdin�_backupfilename� ValueError�_mode�callable� _openhook)�selfr r r r r r r- r r r �__init__� sJ zFileInput.__init__c C s | � � d S )N)r )r; r r r �__del__� s zFileInput.__del__c C s z| � � W d d| _X d S )Nr )r r* )r; r r r r � s zFileInput.closec C s | S )Nr )r; r r r � __enter__� s zFileInput.__enter__c C s | � � d S )N)r )r; �type�value� tracebackr r r �__exit__� s zFileInput.__exit__c C s | S )Nr )r; r r r �__iter__� s zFileInput.__iter__c C s: x4| � � }|r | jd7 _|S | js*t�| �� qW d S )Nr )� _readliner4 r � StopIterationr )r; �liner r r �__next__� s zFileInput.__next__c C s>