python (3.11.7)
eb= d dl Z d dlZd dlZd dlmZ g dZdadddddddZd Zd
Z d Z
d Zd
Zd Z
d Zd Z G d d ZddddZddZd Zedk r e dS dS ) N)GenericAlias)inputclosenextfilefilenamelineno
filelinenofilenoisfirstlineisstdin FileInputhook_compressedhook_encodedF rmodeopenhookencodingerrorsc t rt j rt d t | |||||| a t S )Nzinput() already activer )_state_fileRuntimeErrorr
)filesinplacebackupr r r r s =/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/fileinput.pyr r N sQ 5&, 53444
ugvD8 (9 9 9FM 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 dddddddZd 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 Fbz"'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)
isinstancestrosPathLikefspathsysargvtuple_files_inplace_backup_savestdout_output _filename_startlineno_filelinenor _isstdin_backupfilename _encoding_errorsflagswarn_default_encodingwarningswarnEncodingWarning
ValueError_modereplace_write_modecallable _openhook) selfr r r r r r r rJ s r __init__zFileInput.__init__ s eS!!
%HEE
r{
+
+ %Yu%%(EE}
%e
#!
I+ .4H$49IOOOMM>)1
.
.
. {""IJJJ
<<S11 H
Y !WXXXH%%
H !FGGG!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<