Qfmn ddlZddlZddlZddlZddlZddlZddlmZejdvrddl m Z ndZ ddl Z ddl mZmZmZmZhdZeedr6ej)ej*ej)ej,dZeZeed xsej2j4ZeZd-d Ze d.d Zd Z e jBZ! e jFZ#GddejLZ'e jNjQe'Gdde'Z)e jRjQe)ddl*m+Z+e)jQe+Gdde'Z,e jXjQe,Gdde,Z-Gdde,Z.Gdde-Z/Gdde-Z0Gdd e,Z1Gd!d"e0e/Z2Gd#d$e)Z+Gd%d&e'Z3e jfjQe3Gd'd(ejhZ5Gd)d*e3Z6Gd+d,e6Z7y#e"$re Z!YKwxYw#e"$rGd de$e%Z#YVwxYw)/N) allocate_lock>win32cygwin)setmode)__all__SEEK_SETSEEK_CURSEEK_END>r SEEK_HOLEi gettotalrefcountc |Wtjjrd}nd}tjjrddl}|j dt |dz|S)Nutf-8localerz"'encoding' argument not specified.r )sysflags utf8_modewarn_default_encodingwarningswarnEncodingWarning)encoding stacklevelrs ,/opt/alt/python312/lib64/python3.12/_pyio.py text_encodingr+sS  99  HH 99 * *  MM>):> ; Oc  t|tstj|}t|tt tfst d|zt|tst d|zt|tst d|z|t|tst d|z|t|tst d|zt|}|tdz st|t|kDrtd|zd|v} d|v} d |v} d |v} d |v} d |v}d |v}|r |r td| | z| z| zdkDr td| s| s| s | s td|r | td|r | td|r | td|r |dk(rddl }|jdtdt|| xrdxsd| xrdxsdz| xrd xsdz| xrd xsdz| xrd xsdz||}|} d}|dk(s|dkr|jrd}d}|dkrY]szz|I!N q=+I #XXcjjl+666 "I q=56 6 > => > #C3F I#C3F #C3F/$67 7 M *VXvwO  5^,  6  s=6+K:"-K% K:0AK:$K:%K74K:6K77K::L cR ddl}|jdtdt|dS)Nrz(_pyio.open_code() may not be using hooksr rb)rrr5rV)pathrs r_open_code_with_warningrZs-  MM< !% d rc eZdZy)UnsupportedOperationN)__name__ __module__ __qualname__rrr\r\7s rr\ceZdZ dZddZdZddZdZdZdZ d Z d Z dd Z d Z dd ZdZddZedZddZdZdZdZdZddZdZdZddZdZy)IOBasecN t|jjd|d)N.z() not supported)r\ __class__r])selfnames r _unsupportedzIOBase._unsupported]s)N"$(NN$;$;T$CD Drc( |jdy)Nseekrhrfposwhences rrjz IOBase.seekds  &!rc( |jddSNrr )rjrfs rtellz IOBase.telltsCyyArNc( |jdyNtruncaterkrfrms rruzIOBase.truncatex *%rc& |jyN _checkClosedrqs rflushz IOBase.flushs  rFch |js |jd|_yy#d|_wxYw)NT)_IOBase__closedr|rqs rrCz IOBase.closes5 }} % $ !% s( 1c |j}|rytr|jy |jy#t$rYywxYw#YyxYwry)closedr=_IOBASE_EMITS_UNRAISABLErC)rfrs r__del__zIOBase.__del__sT) [[F   # JJL  #   $ s ;A AA Ac yNFr`rqs rseekablezIOBase.seekables  rcL |jst|d|y)NzFile or stream is not seekable.)rr\rfmsgs r_checkSeekablezIOBase._checkSeekable> }}&*-+(I@ @;>@ @rc yrr`rqs rreadablezIOBase.readable  rcL |jst|d|y)NzFile or stream is not readable.)rr\rs r_checkReadablezIOBase._checkReadablerrc yrr`rqs rwritablezIOBase.writablerrcL |jst|d|y)NzFile or stream is not writable.)rr\rs r_checkWritablezIOBase._checkWritablerrc |jSry)r~rqs rrz IOBase.closeds }}rcD |jrt|d|yNI/O operation on closed file.rr4rs rr{zIOBase._checkCloseds7 ;; # =6 6146 6 rc( |j|Sryrzrqs r __enter__zIOBase.__enter__sQ  rc& |jyry)rC)rfargss r__exit__zIOBase.__exit__s9 rc( |jdy)Nr:rkrqs rr:z IOBase.filenos  (#rc& |jyrrzrqs rr7z IOBase.isattys  rc tdrfd}nd}dn j}|t }dkst |kr[j |}|s t|S||z }|jdr t|SdkrLt |kr[t|S#t$rtdwxYw)Npeekcjd}|sy|jddzxs t|}dk\r t|}|S)Nr  r)rfindr3min) readaheadnrfsizes r nreadaheadz#IOBase.readline..nreadaheadsI IIaL  ^^E*Q.A3y>19At ArcyNr r`r`rrrz#IOBase.readline..nreadahead!srr* is not an integerrr) hasattr __index__r=r1 bytearrayr3readendswithr0)rfrr size_indexresr's`` rreadlinezIOBase.readline s  4    <D $!^^ "|kQh#c(T/ *,'ASz 1HC||E"SzQh#c(T/Sz" ?4(*< =>> ?s B66Cc&|j|Sryrzrqs r__iter__zIOBase.__iter__6s  rc6|j}|st|Sry)r StopIterationrflines r__next__zIOBase.__next__:s}}  rc ||dkr t|Sd}g}|D])}|j||t|z }||k\s(|S|SNr)listappendr3)rfhintrlinesrs r readlineszIOBase.readlines@sa <419:  D LL  TNADy   rcV |j|D]}|j|yry)r{write)rfrrs r writelineszIOBase.writelinesRs+ D JJt rrryr*)r]r^r_rhrjrrrur|r~rCrrrrrrrpropertyrr{rrr:r7rrrrrr`rrrbrb;s@D" &H %6@@@6 $(T $rrb) metaclassc(eZdZ ddZdZdZdZy) RawIOBasec |d}|dkr|jSt|j}|j|}|y||d=t |S)Nr*r)readallrrreadintor0)rfrr'rs rrzRawIOBase.readms_ <D !8<<> ! dnn& ' MM!  9 abEQxrc t}|jtx}r||z }|jtx}r|r t|S|Sry)rrr8r0)rfrdatas rrzRawIOBase.readall~sU9kii 344d4 4KCii 344d4 : Krc( |jdy)Nrrkrfr's rrzRawIOBase.readintorwrc( |jdyNrrkrs rrzRawIOBase.writes '"rNr)r]r^r_rrrrr`rrrr_s(" &#rr)r6c<eZdZ d dZd dZdZdZdZdZdZ y) BufferedIOBasec( |jdyNrrkrfrs rrzBufferedIOBase.reads " &!rc( |jdy)Nread1rkrs rrzBufferedIOBase.read1s  '"rc* |j|dS)NFr _readintors rrzBufferedIOBase.readintos ~~au~--rc* |j|dS)NTrrrs r readinto1zBufferedIOBase.readinto1s ~~at~,,rct|ts t|}|jd}|r|jt |}n|j t |}t |}||d||SNB)r+ memoryviewcastrr3r)rfr'rrrs rrzBufferedIOBase._readintosb!Z(1 A FF3K ::c!f%D99SV$D I"1rc( |jdyrrkrs rrzBufferedIOBase.writes  '"rc( |jdyNdetachrkrqs rrzBufferedIOBase.detach (#rNr) r]r^r_rrrrrrrr`rrrrs* "(# . -  #$rrceZdZ dZddZdZddZdZdZdZ d Z e d Z e d Z e d Ze d ZdZdZdZdZy)_BufferedIOMixinc||_yry_rawrfrQs r__init__z_BufferedIOMixin.__init__s  rc^|jj||}|dkr td|S)Nrz#seek() returned an invalid position)rQrjr<)rfrmrn new_positions rrjz_BufferedIOMixin.seeks0xx}}S&1 ! ?@ @rcZ|jj}|dkr td|S)Nrz#tell() returned an invalid position)rQrrr<rvs rrrz_BufferedIOMixin.tells)hhmmo 7?@ @ rNc|j|j|j||j}|jj |Sry)r{rr|rrrQrurvs rruz_BufferedIOMixin.truncate"sL   ;))+Cxx  %%rcf|jr td|jjy)Nflush on closed file)rr4rQr|rqs rr|z_BufferedIOMixin.flush3s# ;;34 4 rc|j9|js, |j|jjyyy#|jjwxYwry)rQrr|rCrqs rrCz_BufferedIOMixin.close8sH 88   !  )4   AA#cz|j td|j|j}d|_|S)Nzraw stream already detached)rQr4r|rrs rrz_BufferedIOMixin.detach@s6 88 :; ; ii  rc6|jjSry)rQrrqs rrz_BufferedIOMixin.seekableJxx  ""rc|jSryrrqs rrQz_BufferedIOMixin.rawMs yyrc.|jjSry)rQrrqs rrz_BufferedIOMixin.closedQsxxrc.|jjSry)rQrgrqs rrgz_BufferedIOMixin.nameUxx}}rc.|jjSry)rQrBrqs rrBz_BufferedIOMixin.modeYrrcHtd|jjdNzcannot pickle z objectr1rer]rqs r __getstate__z_BufferedIOMixin.__getstate__]!.)@)@(C7KLLrc|jj}|jj} |j}dj |||S#t $rdj ||cYSwxYw)Nz<{}.{} name={!r}>z<{}.{}>)rer^r_rgformatr=)rfmodnameclsnamergs r__repr__z_BufferedIOMixin.__repr__`sj..++..-- F99D'--gwE E 6##GW5 5 6s A A+*A+c6|jjSry)rQr:rqs rr:z_BufferedIOMixin.filenolxx  rc6|jjSry)rQr7rqs rr7z_BufferedIOMixin.isattyorrrry)r]r^r_rrjrrrur|rCrrrrQrrgrBrr r:r7r`rrrrs   &" !#MF!!rrc|eZdZ dZddZdZdZdZfdZddZ ddZ d Z dd Z d Z dd Zd ZdZdZxZS)BytesIONcBt}|||z }||_d|_yr)r_buffer_pos)rf initial_bytesbufs rrzBytesIO.__init__{s'k  $ = C  rcd|jr td|jjS)Nz__getstate__ on closed file)rr4__dict__copyrqs rrzBytesIO.__getstate__s( ;;:; ;}}!!##rc\ |jr tdt|jS)Nzgetvalue on closed file)rr4r0rrqs rgetvaluezBytesIO.getvalues) ;;67 7T\\""rc\ |jr tdt|jS)Nzgetbuffer on closed file)rr4rrrqs r getbufferzBytesIO.getbuffers) ;;78 8$,,''rcn|j|jjt| yry)rclearsuperrCrfres rrCz BytesIO.closes& << # LL     rc|jr td|d}n |j}|}|dkrt |j }t |j |jkrytt |j |j|z}|j |j|}||_t|S#t$rt |dwxYw)Nread from closed filer*rrr) rr4rr=r1r3rrrr0)rfrrnewposr's rrz BytesIO.reads ;;45 5 <D $!^^ "| !8t||$D t||  )S& D(89 LLV , Qx" ?4(*< =>> ?s CCc& |j|Sry)rrs rrz BytesIO.read1s yyrc|jr tdt|tr t dt |5}|j }ddddk(ry|j}|t|jkDr0d|t|jz z}|xj|z c_ ||j|||z|xj|z c_|S#1swYxYw)Nwrite to closed file can't write str to binary streamr) rr4r+r/r1rnbytesrr3r)rfr'viewrrmpaddings rrz BytesIO.writes ;;34 4 a >? ? ]d A 6ii T\\" "s4<<'8!89G LLG #L$% Sq! Q ]s CCc|jr td |j}|}|dk(r&|dkrtd|||_|j S|dk(r*t d|j |z|_|j S|dk(r3t dt|j|z|_|j Std#t$rt |dwxYw)Nzseek on closed filerrnegative seek position r r zunsupported whence value) rr4rr=r1rmaxr3r)rfrmrn pos_indexs rrjz BytesIO.seeks ;;23 3  I+C Q;Qw !EFFDIyy q[Atyy3/DI yy q[As4<<0367DIyy78 8 :sg%789 9 :s C C!cH|jr td|jS)Ntell on closed file)rr4rrqs rrrz BytesIO.tells ;;23 3yyrc|jr td| |j}n' |j}|}|dkrtd||j |d=|S#t$rt |dwxYw)Nztruncate on closed filerrznegative truncate position )rr4rrr=r1r)rfrmr0s rruzBytesIO.truncates ;;67 7 ;))C "MM  kQw C!IJJ LL  " >3'); <== >s AA7c2|jr tdyNrTrrqs rrzBytesIO.readable ;;<= =rc2|jr tdyr5rrqs rrzBytesIO.writabler6rc2|jr tdyr5rrqs rrzBytesIO.seekabler6rryrr)r]r^r_rrrrrrCrrrrjrrrurrr __classcell__res@rrrssSFG$ #( * &* "  rrc`eZdZ efdZdZdZd dZd dZddZ ddZ dd Z d Z d Z dd Zy)r@c |js tdtj|||dkr t d||_|j t|_y)Nz "raw" argument must be readable.rinvalid buffer size) rr<rrr4 buffer_size_reset_read_bufLock _read_lockrfrQr>s rrzBufferedReader.__init__ s] ||~<= =!!$, ! 23 3& &rc6|jjSry)rQrrqs rrzBufferedReader.readablerrc d|_d|_y)Nrr) _read_buf _read_posrqs rr?zBufferedReader._reset_read_bufsrNc ||dkr td|j5|j|cdddS#1swYyxYw)Nr*zinvalid number of bytes to read)r4rA_read_unlockedrs rrzBufferedReader.read!sE   r >? ? __&&t, - -__s ;AcJd}d}|j}|j}||dk(r|jt|jdr-|jj }| ||dxsdS||d|zS||dg}d} |jj }||vr|}n |t|z }|j|Adj|xs|St||z } || kr|xj|z c_||||zS||dg}t|j|} | |krG|jj | }||vr|}n%| t|z } |j|| |krGt|| }dj|} | |d|_d|_| r| d|S|S)Nr)rNr*rr) rErFr?rrQrrr3rjoinr/r>r) rfr nodata_val empty_valuesrrmchunkchunks current_sizeavailwantedouts rrHzBufferedReader._read_unlocked.s " nnnn 9R  "txx+((*=st9,,st9u,,#$i[FL L(!&JE *  e$88F#1z 1C3 : NNa Ns3q5> !cd)T%%q)aiHHMM&)E $"  SZ E MM% ai 5MhhvQRs2Aw-:-rc |jd|j5|j|cdddS#1swYyxYw)Nzpeek of closed file)r{rA_peek_unlockedrs rrzBufferedReader.peekbs< /0 __&&t, - -__s :Ac`t||j}t|j|jz }||ks|dkrT|j|z }|j j |}|r(|j|jd|z|_d|_|j|jdSr)rr>r3rErFrQr)rfrwanthaveto_readcurrents rrTzBufferedReader._peek_unlockedms1d&&'4>>"T^^3 $;$!)&&-GhhmmG,G!%!@7!J!"~~dnno..rc 0 |jd|dkr |j}|dk(ry|j5|jd|j t |t |j|jz cdddS#1swYyxYw)Nzread of closed filerrr ) r{r>rArTrHrr3rErFrs rrzBufferedReader.read1xsJ /0 !8##D 19 __    "&&D#dnn->?A A A__s A B  Bc |jdt|ts t|}|jdk(ry|j d}d}|j 5|t |krtt |j|jz t |}|rU|j|j|j|z||||z|xj|z c_ ||z }|t |k(rnlt ||z |jkDr'|jj||d}|sn0||z }n|r|s|jdsn|r|rn|t |krddd|S#1swY|SxYw)Nzreadinto of closed filerrr )r{r+rr*rrAr3rrErFr>rQrrT)rfrrwrittenrPrs rrzBufferedReader._readintos`@ 34 #z*S/C ::?hhsm __CH$C/$..@#c(Kt~~dnnU6JK .NNe+Nu$G#c(*s8g%(8(88))#gh-8AqLG G..q1W9CH$>?>s DE..E8cttj|t|jz |j zdSr)r/rrrr3rErFrqs rrrzBufferedReader.tells3#((.T^^1DDt~~UWXYYrc4|tvr td|jd|j5|dk(r%|t |j |j z z}tj|||}|j|cdddS#1swYyxYw)Ninvalid whence valuezseek of closed filer ) valid_seek_flagsr4r{rAr3rErFrrjr?rls rrjzBufferedReader.seeks ) )34 4 /0 __{s4>>*T^^;;"''c6:C  "   __s ABBryrr)r]r^r_r8rrr?rrHrrTrrrrrjr`rrr@r@sG)< !# -2.h - / A&.`Z rr@cLeZdZ efdZdZdZd dZdZdZ dZ d d Z d Z y) r?c|js tdtj|||dkr t d||_t |_t|_ y)Nz "raw" argument must be writable.rr=) rr<rrr4r>r _write_bufr@ _write_lockrBs rrzBufferedWriter.__init__sV||~<= =!!$, ! 23 3&#+6rc6|jjSry)rQrrqs rrzBufferedWriter.writablerrcDt|tr td|j5|jr t dt |j|jkDr|jt |j}|jj|t |j|z }t |j|jkDr |j|cdddS#t$r}t |j|jkDrft |j|jz }||z}|jd|j|_t|j|j|Yd}~d}~wwxYw#1swYyxYw)Nr(r')r+r/r1rdrr4r3rcr>_flush_unlockedextendBlockingIOErrorerrnostrerror)rfr'beforer\eoverages rrzBufferedWriter.writesT a >? ?   {{ !7884??#d&6&66$$&)F OO " "1 %$//*V3G4??#d&6&66 L((*/  'L4??+d.>.>>#&doo"69I9I"I7**.//:K4;K;K*L-aggqzz7KK ?L s7B4FC8-F8 FBF FFFFNc|j5|j||jj}|jj |cdddS#1swYyxYwry)rdrgrQrrrurvs rruzBufferedWriter.truncatesN     "{hhmmo88$$S)  * *  s AAA'cf|j5|jdddy#1swYyxYwry)rdrgrqs rr|zBufferedWriter.flushs#     "  s'0c|jr td|jr |jj |j}|t tjdd|t|jkDs|dkr td|jd|=|jryy#t $r t dwxYw)NrzHself.raw should implement RawIOBase: it should not raise BlockingIOErrorz)write could not complete without blockingrz*write() returned incorrect number of bytes) rr4rcrQrri RuntimeErrorrjEAGAINr3r<rfrs rrgzBufferedWriter._flush_unlockeds ;;34 4oo GHHNN4??3y%LL?DD3t''1q5JKK#oo# G"$FGG Gs %B--CcXtj|t|jzSry)rrrr3rcrqs rrrzBufferedWriter.tells!$$T*S-AAArc|tvr td|j5|jtj |||cdddS#1swYyxYw)Nr_)r`r4rdrgrrjrls rrjzBufferedWriter.seeksO ) )34 4     "#((sF; < <  s 'AAc|j5|j |jr dddy ddd |j|j5|jj dddy#1swYJxYw#1swYyxYw#|j5|jj dddw#1swYwxYwxYwry)rdrQrr|rCrqs rrCzBufferedWriter.close#s   xx4;;  #. ! JJL!! "! "!!! "!!s:A:BB:BB CC: CC Cryr) r]r^r_r8rrrrur|rgrrrjrCr`rrr?r?s:)< "#8*#$"B< !rr?cpeZdZ efdZddZdZdZddZddZ dZ dZ d Z d Z d Zd Zed Zy)BufferedRWPairc |js td|js tdt|||_t |||_y)Nz#"reader" argument must be readable.z#"writer" argument must be writable.)rr<rr@readerr?writer)rfr{r|r>s rrzBufferedRWPair.__init__CsQ  ?@ @ ?@ @$V[9 $V[9 rc@|d}|jj|SNr*)r{rrs rrzBufferedRWPair.readQs! <D{{%%rc8|jj|Sry)r{rrs rrzBufferedRWPair.readintoVs{{##A&&rc8|jj|Sry)r|rrs rrzBufferedRWPair.writeYs{{  ##rc8|jj|Sry)r{rrs rrzBufferedRWPair.peek\s{{%%rc8|jj|Sry)r{rrs rrzBufferedRWPair.read1_s{{  &&rc8|jj|Sry)r{rrs rrzBufferedRWPair.readinto1bs{{$$Q''rc6|jjSry)r{rrqs rrzBufferedRWPair.readablee{{##%%rc6|jjSry)r|rrqs rrzBufferedRWPair.writablehrrc6|jjSry)r|r|rqs rr|zBufferedRWPair.flushks{{  ""rc |jj|jjy#|jjwxYwry)r|rCr{rqs rrCzBufferedRWPair.closens8 KK    KK   DKK   s 7Acn|jjxs|jjSry)r{r7r|rqs rr7zBufferedRWPair.isattyts'{{!!#;t{{'9'9';;rc.|jjSry)r|rrqs rrzBufferedRWPair.closedw{{!!!rNrr)r]r^r_r8rrrrrrrrrr|rCr7rrr`rrryry3s] 4G :& '$&'(&&# <""rrycXeZdZ efdZd dZdZd dZd dZdZ d dZ dd Z d Z d Z y)r>c|jtj|||tj|||yry)rr@rr?rBs rrzBufferedRandom.__init__s2 c;7c;7rc|tvr td|j|jrQ|j5|j j |jt|jz dddd|j j ||}|j5|jddd|dkr td|S#1swY\xYw#1swY'xYw)Nr_r rz seek() returned invalid position) r`r4r|rErArQrjrFr3r?r<rls rrjzBufferedRandom.seeks ) )34 4 >> dnns4>>/BBAF!hhmmC( __  " 7<= = ! _s=C)C C C)cn|jrtj|Stj|Sry)rcr?rrr@rqs rrrzBufferedRandom.tells+ ??!&&t, ,!&&t, ,rNcR||j}tj||Sry)rrr?rurvs rruzBufferedRandom.truncates% ;))+C&&tS11rcV|d}|jtj||Sr~)r|r@rrs rrzBufferedRandom.reads( <D ""4..rcN|jtj||Sry)r|r@rrs rrzBufferedRandom.readintos &&tQ//rcN|jtj||Sry)r|r@rrs rrzBufferedRandom.peeks ""4..rcN|jtj||Sry)r|r@rrs rrzBufferedRandom.read1s ##D$//rcN|jtj||Sry)r|r@rrs rrzBufferedRandom.readinto1s ''a00rc |jra|j5|jj|jt |jz d|j dddtj||S#1swYxYwr) rErArQrjrFr3r?r?rrs rrzBufferedRandom.writesb >> dnns4>>/BBAF$$&!##D!,,!s A BB rryr)r]r^r_r8rrjrrrurrrrrrr`rrr>r>|s>)<8 "- 2 / 0/01-rr>ceZdZdZdZdZdZdZdZdZ ddZ dZ dZ dZ d Zdd Zdd Zd Zd ZdZefdZdZddZfdZdZdZdZdZdZedZedZ xZ!S)r6r*FNTc^ |jdk\r3 |jrtj|jd|_t |t r t dt |tr|}|dkr tdd}t |tst d|t|tdkstd|td|Ddk7s|jd dkDr td d |vr0d |_ d |_tjtj z}nnd |vr d |_d}n`d|vr)d |_tj tj$z}n3d|vr/d |_d |_tj(tj z}d |vrd |_d |_|j"r |jrtj*z}n3|j"rtj,z}ntj.z}|t1tddz}t1tddxst1tdd}||z}d} |dkru|s td|tj2||d}n4|||}t |ts t d|dkr t5d|}|stj6|d||_tj8|} t;j<| j>rz"FileIO.__init__..s)DqqF{Dsr r%zKMust have exactly one of create/read/write/append mode and at most one plusr!Tr"r#r$O_BINARY O_NOINHERIT O_CLOEXECz'Cannot use closefd=False with file nameizexpected integer from openerzNegative file descriptorFr;)-_fd_closefdr-rCr+floatr1r,r4r/r2sumcount_created _writableO_EXCLO_CREAT _readableO_TRUNC _appendingO_APPENDO_RDWRO_RDONLYO_WRONLYgetattrrVr<set_inheritabler9statS_ISDIRst_modeIsADirectoryErrorrjEISDIRrkr=_blksizer8_setmoderrglseekr ESPIPE) rfrDrBrHr)fdrnoinherit_flagowned_fdfdfstatrms rrzFileIO.__init__s  88q= ==HHTXX& dE "BC C dC BAv !;<<B$$$89 94yCM)49: : )D) )Q .$**S/A2E9: : $; DM!DNII *E D[!DNE D[!DNJJ+E D[!DN"DOKK"**,E $;!DN!DN >>dnn RYY E ^^ R[[ E R[[ E Z++!"mQ76!"k15  / Av$%NOO>ue4Be,B%b#.'(FGGAv%&@AA%&&r51#DMhhrlG <<0+ELL,.KK ,EtMM1$G\1=DM}}! 3 R[[)DIHHRH-IT"  &ww%,,./ #" sb+O BP$AO?A P O O  OPOP P'P P PPP,c|jdk\rK|jr>|js1ddl}|j d|t d||j yyyy)Nrzunclosed file r )rsource)rrrrrResourceWarningrC)rfrs rrzFileIO.__del__HsK 88q=T]]4;;  MM6%&t  5 JJL 4?]=rcHtd|jjdrrrqs rrzFileIO.__getstate__Orrc N|jjd|jj}|jrd|zS |j}d|d|d|j d|j d S#t$r*d||j|j |j fzcYSwxYw) Nrdz <%s [closed]>z<%s fd=%d mode=%r closefd=%r>) rer^r_rrgrBrr=r)rf class_namergs rr zFileIO.__repr__Rs $ 9 9 $ ; ;= ;;"Z/ / B99D  tyy$--A B  F3499dmmDE F Fs A110B$#B$c2|js tdy)NzFile not open for reading)rr\rqs rrzFileIO._checkReadable`~~&'BC Crc2|js tdy)NzFile not open for writing)rr\rs rrzFileIO._checkWritabledrrc |j|j||dkr|jS tj|j |S#t $rYywxYwr)r{rrr-rrrirs rrz FileIO.readhsd   <4!8<<> ! 77488T* *  sA A&%A&cT |j|jt} tj|j dt }tj|j j}||k\r||z dz}t} t||k\rt|}|t|tz }|t|z } tj|j |}|s t|S||z }o#t$rYwxYw#t$r|r Yt|SYywxYwrp)r{rr8r-rrr r9st_sizer<rr3r/rrir0)rfbufsizermendrRrrMs rrzFileIO.readallxs&  % ((488Q1C((488$,,Ccz)a-6{g%f+3w(;<<#f+%A !, V} eOF    #  V}  s$AC> D > D  D  D'&D'c t|jd}|jt|}t|}||d||Sr)rrrr3)rfr'mrrs rrzFileIO.readintosD+ qM  s #yyQ  I"1rc |j|j tj|j|S#t $rYywxYwry)r{rr-rrrirs rrz FileIO.writesM   88DHHa( (  sA AAc t|tr td|jt j |j ||S)Nzan integer is required)r+rr1r{r-rrrls rrjz FileIO.seeksB  c5 !45 5 xx#v..rcn |jtj|jdtSr)r{r-rrr rqs rrrz FileIO.tells, 5 xx!X..rc |j|j||j}tj|j ||Sry)r{rrrr- ftruncaterrs rruzFileIO.truncatesH   <99;D TXXt$ rc |js; |jrtj|jt | yy#t | wxYwry)rrr-rCrr r!s rrCz FileIO.closesH {{ ==HHTXX&    s +A Ac |j|j$ |jd|_|jS|jS#t$rd|_Y|jSwxYw)NTF)r{ _seekablerrr<rqs rrzFileIO.seekablesi2  >> ! & "&~~t~~  '!&~~  'sAA,+A,c< |j|jSry)r{rrqs rrzFileIO.readables5 ~~rc< |j|jSry)r{rrqs rrzFileIO.writables6 ~~rc< |j|jSry)r{rrqs rr:z FileIO.filenosA xxrcb |jtj|jSry)r{r-r7rrqs rr7z FileIO.isattys$< yy""rc |jSry)rrqs rrHzFileIO.closefdsD}}rc |jr|jryy|jr|jryy|jr|jryyy)Nzxb+xbzab+abzrb+rXwb)rrrrrqs rrBz FileIO.modesD) ==~~ __~~ ^^~~r)r"TNry)"r]r^r_rrrrrrrrrrr rrrrrrrrjrrrurCrrrr:r7rrHrBr9r:s@rr6r6s CHIIJIHwrM BDD !F  (/ /       # rr6c`eZdZ d dZdZd dZdZdZedZ edZ ed Z y) TextIOBasec( |jdyrrkrs rrzTextIOBase.read%s  &!rc( |jdyrrk)rfss rrzTextIOBase.write/s< '"rNc( |jdyrtrkrvs rruzTextIOBase.truncate3s8 *%rc( |jdy)Nrrkrqs rrzTextIOBase.readline7s  *%rc( |jdyrrkrqs rrzTextIOBase.detach>rrc yryr`rqs rrzTextIOBase.encodingGs)rc yryr`rqs rnewlineszTextIOBase.newlinesLs  rc yryr`rqs rrFzTextIOBase.errorsVs  'rrry) r]r^r_rrrurrrrrrFr`rrrrs\ "#&&$rrcLeZdZ d dZd dZdZdZdZdZdZ dZ e d Z y ) IncrementalNewlineDecoderc~tjj||||_||_d|_d|_y)N)rFrF)codecsIncrementalDecoderr translatedecoderseennl pendingcr)rfrrrFs rrz"IncrementalNewlineDecoder.__init__gs7!!**4*?"  rc8|j|}n|jj||}|jr|s|r d|z}d|_|jdr|s |dd}d|_|j d}|j d|z }|j d|z }|xj |xr |j |xr |jz|xr |jzzc_|jr(|r|jdd}|r|jdd}|S)Nfinal Fr*T  ) rdecoderrrr_LF_CR_CRLFrreplace)rfinputroutputcrlfcrlfs rrz IncrementalNewlineDecoder.decodens << F\\((e(>vF]F"DN ??4 CR[F!DN||F# \\$ $ & \\$ $ & txxBO488<* , ,  >>5d3 rc|jd}d}n|jj\}}|dz}|jr|dz}||fS)Nrrr )rgetstater)rfrflags rr z"IncrementalNewlineDecoder.getstatesO << CD --/IC   >> AIDDyrc|\}}t|dz|_|j!|jj||dz fyyr)boolrrsetstate)rfstaterr s rr z"IncrementalNewlineDecoder.setstatesD TdQh << # LL ! !3 "2 3 $rcnd|_d|_|j|jjyy)NrF)rrrresetrqs rrzIncrementalNewlineDecoder.resets/  << # LL    $rr r c d|jS)N)Nrr)rrr)rr)rr)rrr)rrqs rrz"IncrementalNewlineDecoder.newliness rN)strict)F) r]r^r_rrr r rrrrrrr`rrrr`sC > 4 ! C C E   rrcneZdZ dZdZ d)dZdZ d)dZdZe dZ e dZ e d Z e d Z e d Zddeddd d ZdZdZdZdZdZe dZe dZdZdZdZdZdZdZd*dZdZdZ dZ! d+dZ"d Z#d!Z$d*d"Z%d#Z&d,d$Z'd*d%Z(d&Z)d*d'Z*e d(Z+y)-rAiNc`|j|t|}|dk(r|j}t|tst d|zt j|jsd}t||z|d}n9t|tst d|ztrt j|||_ d|_ d|_d|_|j j#x|_|_t)|j d|_|j-|||||y) NrrzG%r is not a text encoding; use codecs.open() to handle arbitrary codecsrr r(rr)_check_newliner_get_locale_encodingr+r/r4rlookup_is_text_encoding LookupError _CHECK_ERRORS lookup_errorr_decoded_chars_decoded_chars_used _snapshotrUrr_tellingr _has_read1 _configure)rfrUrrFrGrS write_throughrs rrzTextIOWrapper.__init__s  G$ * x 002H(C(3h>? ?}}X&88BCcHn- - >Ffc* !5!>??##F+  #$ )-)=)=)??!$++w7 &'&  7rcz|'t|tstdt||dvrt d|y)Nzillegal newline type: )Nr(rrrzillegal newline value: )r+r/r1typer4)rfrGs rrzTextIOWrapper._check_newlines?  z'3'?$w-IJ J 8 8GEF F 9rc||_||_d|_d|_d|_| |_|du|_||_|dk7|_|xstj|_ ||_ ||_ |jrR|jrA|j j#}|dk7r! |j%j'dyyyy#t($rYywxYw)Nr(r) _encoding_errors_encoder_decoder _b2cratio_readuniversal_readtranslate_readnl_writetranslater-linesep_writenl_line_buffering_write_throughrrrUrr _get_encoderr r)rfrrFrGrSr#positions rr"zTextIOWrapper._configures!   ")k%o &"}-2:: -+ >>dmmo{{'')H1}%%'003.> #s)C CCcrdj|jj|jj} |j}|dj|z } |j }|dj|z }|dj|jzS#t $rYJwxYw#t $rY8wxYw)Nz<{}.{}z name={0!r}z mode={0!r}z encoding={0!r}>)r rer^r_rgr=rBr)rfrRrgrBs rr zTextIOWrapper.__repr__!s!:!:!%! 199D m**40 0F 199D m**40 0F*11$--@@@       s# B B* B'&B'* B65B6c|jSry)r(rqs rrzTextIOWrapper.encoding2s ~~rc|jSry)r)rqs rrFzTextIOWrapper.errors6 ||rc|jSry)r3rqs rrSzTextIOWrapper.line_buffering:s###rc|jSry)r4rqs rr#zTextIOWrapper.write_through>s"""rc|jSry)rrqs rrUzTextIOWrapper.bufferBr:r)rrFrGrSr#c |j| ||tur td|| |j}n!d}nt |t st d|z| |j}n3t |t st d|z|dk(r|j}|tur |j}|j|| |j}| |j}|j|j|||||y)NzPIt is not possible to set the encoding or newline of stream after the first readrr rr)r+Ellipsisr\r)r+r/r1r(rr/rrSr#r|r")rfrrFrGrSr#s r reconfigurezTextIOWrapper.reconfigureFs  MM %)V-?x/&'( ( >!FC(069: :  ~~Hh, 6 ABB8#446 h llG G$  !!00N   ..M  &'&  7rcH|jr td|jSr)rr4rrqs rrzTextIOWrapper.seekableqs ;;<= =~~rc6|jjSry)rUrrqs rrzTextIOWrapper.readablevrrc6|jjSry)rUrrqs rrzTextIOWrapper.writableyrrcZ|jj|j|_yry)rUr|rr rqs rr|zTextIOWrapper.flush|s  rc|j9|js, |j|jjyyy#|jjwxYwry)rUrr|rCrqs rrCzTextIOWrapper.closesL ;; "4;; $  !!# ,7 " !!#rc.|jjSry)rUrrqs rrzTextIOWrapper.closedrrc.|jjSry)rUrgrqs rrgzTextIOWrapper.names{{rc6|jjSry)rUr:rqs rr:zTextIOWrapper.fileno{{!!##rc6|jjSry)rUr7rqs rr7zTextIOWrapper.isattyrIrc |jr tdt|ts"t d|j j zt|}|jxs |jxrd|v}|r7|jr+|jdk7r|jd|j}|jxs|j}|j|}|jj!||jr|sd|vr|j#|j$|j'dd|_|j(r|j(j+|S)Nr'zcan't write %s to text streamrrr()rr4r+r/r1rer]r3r0r3r2rr*r5encoderUrr|r_set_decoded_charsr+r)rfrlengthhaslfencoderr's rrzTextIOWrapper.writes"& ;;34 4!S!;KK0012 2Q%%=)=)=L419 T))dmmt.C $ .A--64#4#4#6 NN1  !   Udai JJL >> %  # #B '!DN == MM   ! rctj|j}||j|_|jSry)rgetincrementalencoderr(r)r*)rf make_encoders rr5zTextIOWrapper._get_encoders033DNNC $T\\2 }}rctj|j}||j}|jrt ||j }||_|Sry)rgetincrementaldecoderr(r)r-rr.r+)rf make_decoderrs r _get_decoderzTextIOWrapper._get_decodersK33DNNC t||,   /9L9LMG rc" ||_d|_yr)rr)rfcharss rrMz TextIOWrapper._set_decoded_charss,##$ rc |j}||j|d}n|j|||z}|xjt|z c_|Sry)rrr3)rfroffsetrYs r_get_decoded_charsz TextIOWrapper._get_decoded_charssW5)) 9''0E''vz:E   CJ.  rcJ ddl}|jS#t$rYywxYw)Nrr)r getencoding ImportError)rfrs rrz"TextIOWrapper._get_locale_encodings/ (  %%' '   s  ""cd |j|kr td|xj|zc_y)Nz"rewind decoded_chars out of bounds)rAssertionErrorrts r_rewind_decoded_charsz#TextIOWrapper._rewind_decoded_charss0/  # #a ' !EF F   A% rc( |j td|jr|jj\}}|jr&|j j |j}n%|j j|j}| }|jj||}|j||r't|t|jz |_ nd|_ |jr |zf|_| S)Nz no decoderr')r+r4r r r!rUr _CHUNK_SIZErrrMr3rr,r)rf dec_buffer dec_flags input_chunkeof decoded_charss r _read_chunkzTextIOWrapper._read_chunks  == \* * ==%)MM$:$:$< !J ??++++D,<,<=K++**4+;+;   .  -D4G4G0HHDN DN ==(k)ABDNwrcH||dzz|dzz|dzzt|dzzS)N@)r )rfr6rf bytes_to_feedneed_eof chars_to_skips r _pack_cookiezTextIOWrapper._pack_cookie s=IrM*mS.@As"$&*8nc&9: ;rct|d\}}t|d\}}t|d\}}t|d\}}|||t||fS)Nl)divmodr )rfbigintrestr6rfrprqrrs r_unpack_cookiezTextIOWrapper._unpack_cookie sY.h u-i$T51m"(u"5-M4>=PPrc 2|js td|js td|j |j j }|j}| |j|jr td|S|j\}}|t|z}|j}|dk(r|j||S|j} t|j |z}d}|dkDrs|j#d|ft|j%|d|} | |kr.|j\} } | s| }|| z}n6|t| z}d}n ||z}|dz}|dkDrsd}|j#d|f||z} |} |dk(r#|j| | |j#|Sd}d}d}t'|t|D][}|dz }|t|j%|||dzz }|j\}}|s||kr| |z } ||z}|dd}}} ||k\s[n2|t|j%dd z }d }||kr td |j| | ||||j#|S#|j#|wxYw) N!underlying stream is not seekablez(telling position disabled by next() callzpending decoded textrr rr FTrz'can't reconstruct logical file position)rr\r r<r|rUrrr+rrrar3rrsr r,r,r rrange)rfr6rrf next_inputrr saved_state skip_bytes skip_backrr'd start_pos start_flags bytes_fedrq chars_decodedires rrrzTextIOWrapper.tell s~~&'JK K}}DE E ;;##%-- ?dnn4""$%;<<O!% :C O#00 A $$Xy9 9&&( F *T^^m;?@ %"++-DAq$% %* #a&(J !I)+J )A I#q.&   #y!12!:-I#K!((K@@   [ )5IHM:s:7Q W^^Jq14E%F!GG (/(8(8(:% I!m}&D*I!]2M._reset_encoder sV K $-->4+<+<+> q=$$Q'MMO  sA AAr2rzrz#can't do nonzero cur-relative seeksz#can't do nonzero end-relative seeksr(zunsupported whence ()r.rz#can't restore logical file position)rr4rr\r rrr r|rUrjrMrr+rrxrWr rrr3rr<r) rfcookiernrr6rrfrprqrrrgs ` rrjzTextIOWrapper.seek s- $ ;;23 3~~&'JK K X {*+PQQFYY[F x {*+PQQ JJL{{''62H  # #B '!DN}} ##% 8 $O Q;&BC C A:FDE E    ' E 9mX} # # Q;4== MM   ! ]]i= MM@T->->-@DM MM " "C#3 4'-DN ++**=9K  # # $$[(; ='5DN4&&'-7CDD'4D $v rcb|j|d}n |j}|}|jxs|j }|dkrb|j |j|jjdz}|j|jdd|_ |Sd}|j |}t||krD|sB|j }||j |t|z z }t||kr|sB|S#t$rt|dwxYw)Nr*rrTrr(F)rrr=r1r+rWr\rrUrrrMr3rj)rfrrrrRrhs rrzTextIOWrapper.read s1  <D $!^^ "|--64#4#4#6 !8--/nnT[[%5%5%7tnDEF~~)''+!%MC,,T2Ff+$S**,,$11$V2DEEf+$SM)" ?4(*< =>> ?s DD.ctd|_|j}|sd|_|j|_t|Sr)r rrrrrs rrzTextIOWrapper.__next__ s4 }}!DN NNDM  rc$|jr td|d}n |j}|}|j }d}|j s|jdx}} |jr*|jd|}|dk\r|dz}n;t|}n|jrj|jd|}|jd|}|dk(r|dk(r t|}ni|dz}n|dk(r|dz}n||kr|dz}n||dzk(r|dz}n|dz}n|j|j}|dk\r|t|jz}n|dk\rt||k\r|}nj|jr|jrn|jr|jr||j z }n|jd d|_|Se|dk\r||kDr|}|j#t||z |d|S#t$rt |dwxYw) Nr#r*rrrr rr r()rr4rr=r1r\r+rWr.rr3r-r/rjrrMrrb) rfrrrstartrmendposnlposcrposs rrzTextIOWrapper.readline sN ;;45 5 <D $!^^ "|&&(}}    f""iie,!8 1WFIE$$  $. $.B;{ #D "'b["QYFU]"QYFeai'"QYF#QYFii -!8 3t||#44FqySY$.""$&&""$""//11''+!% }@ 19$F ""3t9v#56GV}g" ?4(*< =>> ?s G77HcJ|jr|jjSdSry)r+rrqs rrzTextIOWrapper.newlinesU s)-t}}%%@D@r)NNNFFry)rrFrr),r]r^r_rdrrrr"r rrrFrSr#rUr?r@rrrr|rCrrgr:r7rr5rWrMr\rrbrjrsrxrrrurrjrrrrr`rrrArAs~,KG DH5:7BG >B7<HA"$$##"$#'t)7V &&'$""  $$0 % (& (T01JK;Qa*F) IV:[zAArrAcTeZdZ dfd ZdZdZedZedZdZ xZ S)StringIOctt| tdd||d|_|`t |t s-tdjt|j|j||jdyy)Nr surrogatepass)rrFrGFz*initial_value must be str or None, not {0}r) r rrrr0r+r/r1r r%r]rrj)rf initial_valuerGres rrzStringIO.__init__a s h&wy07.=/6 ' 8 ?#(D  $mS1 L!'](;(D(D!EGG JJ} % IIaL %rcD|j|jxs|j}|j}|j  |j |j jd|j|S#|j|wxYw)NTr) r|r+rWr rrrUrr )rfr old_states rrzStringIO.getvalueq sx --64#4#4#6$$&   (>>$++"6"6"8>E   Y 'G  Y 's *B Bc,tj|Sry)objectr rqs rr zStringIO.__repr__{ st$$rcyryr`rqs rrFzStringIO.errors rcyryr`rqs rrzStringIO.encoding rrc&|jdyrrkrqs rrzStringIO.detach s (#r)r(r) r]r^r_rrr rrFrrr9r:s@rrrZ sD  (% $rr)r )r"r*NNNTN)8r-abcrrjrr_threadrr@platformmsvcrtrriorrr r r`raddr SEEK_DATAr8rirdev_moderrr staticmethodrVrZ open_coder=r\r<r4ABCMetarbregisterr_ior6rrrr@r?ryr>rrrrArr`rrrsa )<<&&*H 66 2{&&"$C);<R @R@R( B=A,0KK^ ( I 22 _s{{_B  68#8#t i  6e$Ve$N>*h!~h!VLnL^F%FPf!%f!RF"^F"RG-^^G-TTYTn >>@ z"R 9 9Rjb AJb AJ0$}0$YI('I(  w   s$ H HHHH43H4