+
    ie=  c            	       s    ^ RI t ^ RIt^ RIt^ RIHt . ROtRsRRRRRRRRR/R	 lltR
 tR t	R t
R tR tR tR tR t ! R R4      tRRRR/R ltRR ltR t]R8X  d
   ]! 4        R# R# )    N)GenericAlias	FileInputmoderopenhookencodingerrorsc          
      s    \         '       d"   \         P                  '       d   \        R 4      h\        WW#VWVR7      s \         # )zinput() already active)r   r   r   r   )_state_fileRuntimeErrorr   )filesinplacebackupr   r   r   r   s   &&&$$$$"/usr/lib64/python3.14/fileinput.pyinputr   N   s5     v&,,,344uv8 (9FM    c                  sJ    \         p R s V '       d   V P                  4        R # R # N)r   close)Zstates    r   r   r   ]   s     EF r   c                  X    \         '       g   \        R 4      h\         P                  4       # zno active input())r   r
   nextfile r   r   r   r   e   s"     6.//??r   c                  r   r   )r   r
   filenamer   r   r   r   r   s   s"    
 6.//??r   c                  r   r   )r   r
   linenor   r   r   r   r   |   s!     6.//==?r   c                  r   r   )r   r
   
filelinenor   r   r   r   r      s$     6.//r   c                  r   r   )r   r
   filenor   r   r   r   r      s!    
 6.//==?r   c                  r   r   )r   r
   isfirstliner   r   r   r   r      s$    
 6.//r   c                  r   r   )r   r
   isstdinr   r   r   r   r      s"    
 6.//>>r   c            	       s   a  ] tR t^t o RRRRRRRRR/R lltR tR	 tR
 tR tR t	R t
R tR tR tR tR tR tR tR tR t]! ]4      tRtV tR# )r   Nr   r   r   r   r   c               s$   \        V\        4      '       d   V3pMi\        V\        P                  4      '       d   \        P                  ! V4      3pM1Vf   \
        P                  R,          pV'       g   R
pM\        V4      pWn        W n	        W0n
        R V n        R V n        R V n        ^ V n        ^ V n        R V n        RV n        R V n        W`n        Wpn        \
        P*                  P,                  '       d+   RV9  d$   Vf    Vf   ^ R IpVP1                  R\2        ^4       VR9  d   \5        R4      hW@n        VP9                  RR4      V n        V'       d0   V'       d   \5        R4      h\=        V4      '       g   \5        R	4      hWPn        R # )N   NNFbz"'encoding' argument not specified.r   z*FileInput opening mode must be 'r' or 'rb'Zwz4FileInput cannot use an opening hook in inplace modez#FileInput openhook must be callable)-)r   Zrb) Z
isinstanceZstrosZPathLikefspathsysargvZtuple_files_inplace_backup_savestdout_output	_filename_startlineno_filelinenor	   _isstdin_backupfilename	_encoding_errorsZflagsZwarn_default_encodingwarningsZwarnZEncodingWarning
ValueError_modeZreplace_write_modeZcallable	_openhook)	selfr   r   r   r   r   r   r   r1   s	   &&&&$$$$ r   __init__ZFileInput.__init__   sF   eS!!HEr{{++YYu%(E}e
#! II+++4H$49IMM>)1. {"IJJ
<<S1 !WXXH%% !FGG!r   c                &    V P                  4        R # r   r   r6      &r   __del__ZFileInput.__del__       

r   c                sN     V P                  4        RV n        R #   RT n        i ; i)Nr   )r   r%   r:   r;   r   r   ZFileInput.close   s    	MMODK"DKs    	$c                    V # r   r   r:   r;   r   	__enter__ZFileInput.__enter__       r   c                r8   r   r9   )r6   ZtypeZvalueZ	tracebacks   &&&&r   __exit__ZFileInput.__exit__   r=   r   c                r>   r   r   r:   r;   r   __iter__ZFileInput.__iter__   r@   r   c                s     V P                  4       pV'       d   V ;P                  ^,          un        V# V P                  '       g   \        hV P	                  4        K^  T)	_readliner,   r	   ZStopIterationr   r6   line   & r   __next__ZFileInput.__next__   sB    >>#D  A% :::##MMOr   c                s(   V P                   pR V n         V'       d   V\        n        V P                  pR V n         V'       d   VP	                  4        V P
                  pR V n         V = V'       d#   V P                  '       g   VP	                  4        V P                  pR V n	        V'       d)   V P                  '       g   \        P                  ! V4       RV n        R #   \         d     Li ; i  \         d     L'i ; i  T P                  pR T n	        T'       dI   T P                  '       g7   \        P                  ! T4       RT n        i   \         d     RT n        i i ; iRT n        i ; i  T P
                  pR T n         T =M  \         d     Mi ; i T'       d#   T P                  '       g   TP	                  4        T P                  pR T n	        T'       d;   T P                  '       g)   \        P                  ! T4       M  \         d     Mi ; iRT n        i   T P                  pR T n	        T'       dI   T P                  '       g7   \        P                  ! T4       RT n        i   \         d     RT n        i i ; iRT n        i ; i; i)NF)r(   r#   stdoutr)   r   r	   rD   ZAttributeErrorr-   r.   r'   r!   unlinkOSError)r6   Z
savestdoutZoutputZfileZbackupfilename   &    r   r   ZFileInput.nextfile  s   %%
#CJ	&::DDJN
&JJL!%!5!5'+$!$,,,>2 !& "  #(D(	 "&!5!5'+$!$,,,>2 !& #(D % ) %! ::DDJN! 
&JJL!%!5!5'+$!$,,,>2"(D( % "&!5!5'+$!$,,,>2 !& #(D % ) %s  E1 E1 'C  *D 2D D C1  C.-C.1C?>C?-E.0EE.E#	E."E##E.1JF	J	FJFJH"#H"5H",J2H	J	HJHJ"-JI.&J.J9	JJJJc                s     V P                  4       pV'       d   V ;P                  ^,          un        V# V P                  '       g   V# V P                  4        KZ  rC   )rD   r,   r	   r   rE   rG   r   readlineZFileInput.readline"  sA    >>#D  A% :::MMOr   c                s	   V P                   '       g   R V P                  9   d   R# R# V P                   ^ ,          V n        V P                   R,          V n         V P                  4       V n        ^ V n        RV n        RV n        ^ V n        R V P                  9  d   V P                  ;'       g    RpMRpV P                  R8X  df   RV n        R V P                  9   d0   \        \        P                  R	\        P                  4      V n        M\        P                  V n        R
V n        EMV P                  '       Ed   \        P                  ! V P                  4      V P                   ;'       g    R,           V n         \        P"                  ! V P                  4       \        P&                  ! V P                  V P                  4       \)        V P                  V P                  WP*                  R7      V n         \        P,                  ! V P                  P/                  4       4      P0                  p\        P2                  \        P4                  ,          \        P6                  ,          p\9        \        R4      '       d   V\        P:                  ,          p\        P(                  ! V P                  W24      p\        P<                  ! W@P>                  WP*                  R7      V n          \        PB                  ! V P                  V4       \        PD                  T n#        T P@                  \        n"        MV PH                  '       d~   V P                  f-   V PI                  V P                  V P                  4      V n        MtV PI                  V P                  V P                  V P                  V P*                  R7      V n        M1\)        V P                  V P                  WP*                  R7      V n        V P                  PJ                  V n&        V PM                  4       #   \$         d     ELi ; i  \$         d     EL6i ; i  \$         d6    \)        T P                  T P>                  YP*                  R7      T n          ELyi ; i)r   r    r   NFlocaler    z<stdin>ZbufferTz.bakr   r   O_BINARY)'r%   r3   r*   r   r+   r,   r	   r-   r.   r/   Zgetattrr#   Zstdinr&   r!   r"   r'   rJ   rK   Zrenameopenr0   Zfstatr   Zst_modeZO_CREATZO_WRONLYZO_TRUNCZhasattrrQ   Zfdopenr4   r)   ZchmodrI   r(   r5   rM   rD   )r6   r   Zpermr   ZfdrL   r   rD   ZFileInput._readline-  s   {{{djj Qkk"o KKM
  djj ~~11HH>>S &DNdjj $SYY#))D
 YY
 DM}}}IIdnn-1G1GH $IId223 		$..$*>*>?!$"6"6

+3LLJ
88DJJ$5$5$78@@D
 ::3bjj@Dr:..+<B#%99R1A1A6>||$UDL6 $':: !\\
 >>> ~~-%)^^DNNDJJ%O
%)^^ NNDJJX\XdXd &4 &f
 "&dnndjj8\h\h!iDJ,,~~M  * #   P#'8H8H19,,$PDLPs6   = P# :8Q ,!P5 #P21P25QQ<RRc                    V P                   # r   )r*   r:   r;   r   r   ZFileInput.filenamev  s    ~~r   c                s<    V P                   V P                  ,           # r   )r+   r,   r:   r;   r   r   ZFileInput.linenoy  s      4#3#333r   c                rS   r   r,   r:   r;   r   r   ZFileInput.filelineno|  s    r   c                s    V P                   '       d    V P                   P                  4       # R#   \         d    Ru # i ; i)r   )r	   r   r2   r:   r;   r   r   ZFileInput.fileno  s@    :::zz((** I  	s   0 A A c                s     V P                   ^8H  # )r   rT   r:   r;   r   r   ZFileInput.isfirstline  s    1$$r   c                rS   r   )r-   r:   r;   r   r   ZFileInput.isstdin  s    }}r   )r'   r.   r/   r0   r	   r,   r*   r%   r&   r-   r3   r5   r)   rD   r(   r+   r4   NFrN   )__name__Z
__module__Z__qualname__Z__firstlineno__r7   r<   r   r?   rA   rB   rH   r   rM   rD   r   r   r   r   r   r   Zclassmethodr   Z__class_getitem__Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r      s     -"-"$(-"37-"@D-"^&<G R4 % $L1r   c                s8   Vf
   RV9  d   Rp\         P                  P                  V 4      ^,          pVR8X  d   ^ R IpVP	                  W4      pM*VR8X  d   ^ R IpVP                  W4      pM\	        WW#R7      # RV9  d   \        P                  ! WbVR7      pV# )Nr   rO   z.gzz.bz2rP   )	r!   ZpathZsplitextgziprR   bz2ZBZ2FileioZTextIOWrapper)r   r   r   r   ZextrX   ZstreamrY   s   &&$$    r   hook_compressedr[     s    CtO
''

8
$Q
'C
e|8*	X,HXEE $!!&FKMr   c                 s   a a V V3R  lpV# )c                 s    < \        WSSR 7      # )rP   )rR   )r   r   r   r   s   &&r   r   Zhook_encoded.<locals>.openhook  s    HXfEEr   r   )r   r   r   s   ff r   hook_encodedr\     s    FOr   c            	      s   ^ RI p RpRpV P                  \        P                  R,          R4      w  r4V F  w  rVVR8X  d   RpVR8X  g   K  TpK  	  \        WAVR7       Fl  pVRR R	8X  d   VRR pVRR R
8X  d   VRR p\	        R\        4       \        4       \        4       \        4       ;'       d    R;'       g    RV3,          4       Kn  	  \	        R\        4       \        4       \        4       3,          4       R# )r    NFr   zib:z-iTz-b)r   r   Z
Zz%d: %s[%d]%s %sZ*rN   z
%d: %s[%d]rU   )	getoptr#   r$   r   Zprintr   r   r   r   )r]   r   r   ZoptsZargsZoZarF   s           r   _testr^     s    GFsxx|U3JD9g9qf  dF;9T#2Yd9T#2Yd68XZ#.=#8#8S#>#>B#F F 	G <
 
,&(HJ
=
=>r   Z__main__)r   r   r   r   r   r   r   r   r   r   r[   r\   rV   r   )rZ   r#   r!   Ztypesr   Z__all__r   r   r   r   r   r   r   r   r   r   r   r[   r\   r^   rW   r   r   r   <module>r_      s   H 
   
 d  $ c2 c2L T &? z	G r   