Jz`fJ@SSKrSSKrSSKJrJrJrJrJrJrJ r J r J r J r J r JrJrJr SSKJr SSKJr /SQrSr"SS5r"S S \5r\"S \5 "S S \5r\"S \5 "SS\5r\"S\5 "SS5r"SS5r"SS5rg)N)Errorwriterreaderregister_dialectunregister_dialect get_dialect list_dialectsfield_size_limit QUOTE_MINIMAL QUOTE_ALLQUOTE_NONNUMERIC QUOTE_NONE QUOTE_STRINGS QUOTE_NOTNULL)Dialect)StringIO)r r r rrrrrexcel excel_tabr rrrrr Snifferr DictReader DictWriter unix_dialectz1.0cD\rSrSrSrSrSrSrSrSr Sr Sr Sr Sr SrSrg)rXFNcZUR[:waSUlUR5 g)NT) __class__r_valid _validateselfs /usr/lib64/python3.13/csv.py__init__Dialect.__init__ks >>W $DK cj[U5 g![an[[U55SeSnAff=fN)_Dialect TypeErrorrstr)r!es r"rDialect._validateps. * TN *A-T ) *s  2-2)rr)__name__ __module__ __qualname____firstlineno___namer delimiter quotechar escapechar doublequoteskipinitialspacelineterminatorquotingr#r__static_attributes__r%r"rrXs< E FIIJKNG *r%rc,\rSrSrSrSrSrSrSr\ r Sr g) rw,"TF r:N) r-r.r/r0r2r3r5r6r7r r8r9r:r%r"rrws!IIKNGr%rc\rSrSrSrSrg)r r:N)r-r.r/r0r2r9r:r%r"rrsIr%rz excel-tabc,\rSrSrSrSrSrSrSr\ r Sr g) rr=r>TF r:N) r-r.r/r0r2r3r5r6r7r r8r9r:r%r"rrs!IIKNGr%runixc\rSrSrS SjrSr\S5r\RS5rSr \ "\ R5r Srg) rNcUb[U5ULa [U5nX lX0lX@l[ X/UQ70UD6UlXPlSUlgNr)iterlist _fieldnamesrestkeyrestvalrdialectline_num)r!f fieldnamesrNrOrPargskwdss r"r#DictReader.__init__sP  !d:&6*&Dj)J%  Q7$7$7   r%cU$r'r:r s r"__iter__DictReader.__iter__s r%cURc[UR5UlURRUlUR$![a N3f=fr')rMnextr StopIterationrQr s r"rSDictReader.fieldnamessW    # #' #4  ,, !  sA AAcXlgr')rM)r!values r"rSr]s r%cURS:Xa UR [UR5nURRUlU/:Xa[UR5nU/:XaM[ [ URU55n[ UR5n[ U5nX4:aXSX R'U$X4:a$URUSHnURX%'M U$rJ) rQrSr[rdictziplenrNrO)r!rowdlflrkeys r"__next__DictReader.__next__s ==A  OO4;; ,, Rit{{#CRi T__c* +  ! X 7!#hAllOWrs+ & &r%)rrPrQrMrOrNrS)NNNr)r-r.r/r0r#rXpropertyrSsetterri classmethodtypes GenericAlias__class_getitem__r9r:r%r"rrsXAE    !!,$E$6$67r%rc^\rSrSrS SjrSrSrSrSr\ "\ R5r Sr g) rcUb[U5ULa [U5nX lX0lUR 5nUS;a[ SU-5eX@l[X/UQ70UD6Ulg)N)raiseignorez-extrasaction (%s) must be 'raise' or 'ignore')rKrLrSrOlower ValueError extrasactionr)r!rRrSrOrxrPrTrUs r"r#DictWriter.__init__ss  !d:&6*&Dj)J$ #))+ 2 2L+,- -(Q7$7$7 r%cv[[URUR55nURU5$r')rarbrSwriterow)r!headers r" writeheaderDictWriter.writeheaders*c$//4??;<}}V$$r%c ^^TRS:XaZTR5TR- nU(a6[SSR UVs/sHn[ U5PM sn5-5eUU4SjTR5$s snf)Nrtz(dict contains fields not in fieldnames: z, c3Z># UH!nTRUTR5v M# g7fr')getrO).0rhrowdictr!s r" +DictWriter._dict_to_list..s"J3 C..Js(+)rxkeysrSrwjoinrepr)r!r wrong_fieldsxs`` r" _dict_to_listDictWriter._dict_to_listsp    '"<<>DOO;L !K#'99|-L!d1g-L#M"NOOJ$//JJ.Ms BcVURRURU55$r')rr{r)r!rs r"r{DictWriter.writerows"{{##D$6$6w$?@@r%c`URR[URU55$r')r writerowsmapr)r!rowdictss r"rDictWriter.writerowss${{$$S););X%FGGr%)rrOrSrxrN)rrtr)r-r.r/r0r#r}rr{rrmrnrorpr9r:r%r"rrs7?F  8%KAH$E$6$67r%rc6\rSrSrSrS SjrSrSrSrSr g) rc/SQUlg)N)r=rB; : preferredr s r"r#Sniffer.__init__s 3r%NcURX5up4pVU(dURUU5upVU(d [S5e"SS[5nXGlXWlU=(d SUlXglU$)NzCould not determine delimiterc \rSrSrSrSr\rSrg)zSniffer.sniff..dialectisniffedr?r:N) r-r.r/r0r1r7r r8r9r:r%r"rPSniffer.sniff..dialectsE#N#Gr%rPr>)_guess_quote_and_delimiter_guess_delimiterrrr5r2r3r6)r!sample delimitersr3r5r2r6rPs r"sniff Sniffer.sniffsz 226F < *.*?*?@J+L 'I78 8 $g $ *%%,#3 r%cr/nSHSn[R"U[R[R-5nUR U5nU(dMS O U(dg0n0nSnWR n UHyn U SS- n Xn U (aUR U S5S-Xl'U SS- n Xn U (aUbX;aUR U S5S-X|'U SS- n X(dMtUS- nM{ [XfR S9n U(a#[XwR S9nX~U:HnUS :XaS nOS nSn[R"S [R"U5U S .-[R5nURU5(aS nOSnU UX4$![a GM+f=f![a GM=f=f)N)zI(?P[^\w\n"\'])(?P ?)(?P["\']).*?(?P=quote)(?P=delim)zG(?:^|\n)(?P["\']).*?(?P=quote)(?P[^\w\n"\'])(?P ?)zG(?P[^\w\n"\'])(?P ?)(?P["\']).*?(?P=quote)(?:$|\n)z-(?:^|\n)(?P["\']).*?(?P=quote)(?:$|\n))rFNrrquotedelimspacerhrErz]((%(delim)s)|^)\W*%(quote)s[^%(delim)s\n]*%(quote)s[^%(delim)s\n]*%(quote)s\W*((%(delim)s)|$))rrTF) recompileDOTALL MULTILINEfindall groupindexrKeyErrormaxescapesearch)r!datarmatchesrestrregexpquotesdelimsspacesrmnrhr3rr6 dq_regexpr5s r"r"Sniffer._guess_quote_and_delimitersH EZZryy2<<'?@FnnT*Gw '&&  A7#a'A$C$jja014  w'!+d *c.?$jja014  w'!+tt! # &JJ/ JJ/E%}6 }E JJ(* %(8)L MNPll\   D ! !KK;@@I     s$& FF' F$#F$' F65F6c[[SURS555n[S5Vs/sHn[ U5PM nn[ S[ U55nSn0n0n0n SUpU [ U5:GaUS- nXU HJn UHAn URU 05nU RU 5nURUS5S-X'XU 'MC ML UR5Hn [X}R55n[ U5S:XaUSSS:XaM;[ U5S:aE[USS9X'URX5 XSXS[SU55- 4X'MUSX'M UR5n[[ XV-[ U555nS nS n[ U 5S:XabUU:a\UH:unnUSS:dMUSS:dMUSU- U:dM*UbUU;dM5UU U'M< US -n[ U 5S:XaUU:aM\[ U 5S:XaL[U R55SnUSRU5USRS U-5:HnUU4$U n X- n U [ U5:aGMU (dg [ U 5S:aYURHInUU R5;dMUSRU5USRS U-5:HnUU4s $ U R5VVs/sH unnUU4PM nnnUR!5 USSnUSRU5USRS U-5:HnUU4$s snfs snnf)NrE rrc US$)Nrr:)rs r"*Sniffer._guess_delimiter..s 1Q4r%rc3(# UH oSv M g7f)rNr:)ritems r"r+Sniffer._guess_delimiter..s(CTa(Csg?g?g{Gz?z%c )rr)rLfiltersplitrangechrminrcrcountritemsrremovesumfloatrsort)r!rrcascii chunkLength iteration charFrequencymodesrstartendlinechar metaFrequencyfreqrmodeListtotal consistency thresholdkvrr6res r"rSniffer._guess_delimiter]s&F4D!123!&s,AQ,,"c$i(    sc$i NI3 8!8D$1$5$5dB$?M::d+D*7*;*;D!*Dq*HM'*7$' 8 8&**, +]06689u:?uQx{a'7u:>"%e"@EKLL-#(;q>5;q>%((CU(C%C4D#EEK#((EK + {{}H#k5s4yABEKIf+"{i'?$*DAqtaxAaD1HqT%ZK7'/1 ?()F1I * t# f+"{i'?6{aV[[]+A.$(GMM%$8$(GMM%%-$@%A /00E  Ccc$if v;?^^ 1 %(,Q a(8(,Q eai(@)A$/00  1%+LLN35Aa!A33 b !  GMM%0 GMM%%-89'((_-R4s M/M4c[[U5URU55n[U5n[ U5n0n[ U5HnSXV'M SnUHinUS:a ObUS- n[ U5U:waM![ UR55H+n [n U "X5 XU :wdMXYcXU 'M)XY M- Mk Sn UR5HIup[U [5(a[ X95U :waU S- n M2U S-n M9U "X95 U S-n MK U S:$![[4a [ X5n Nf=f![[4a U S- n Mf=f)Nrr)rrrr[rcrrLrcomplexrw OverflowErrorr isinstanceintr)) r!rrdrr|columns columnTypesicheckedrdcolthisType hasHeadercolTypes r" has_headerSniffer.has_headersXf%tzz&'9:cf+ w6A$6 -C| qLG3x7"K,,./ -"-SX& 3//"'/+3C((, - -6 '--/ #LC'3''v{#w.NINI#FK(NI #1};#M2-"38}H-0#I.#NI#s$ D( E (EE E$#E$rr') r-r.r/r0r#rrrrr9r:r%r"rrs 4 :IAXd)N=r%r)rrn_csvrrrrrrr r r r r rrrrr(ior__all__ __version__rrrrrrr:r%r"rsD .... %  **>G% i(7&3838l 8 8FWWr%