grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó 實ÝFvÖuãó˜•Sr/SQrSrSSKJr SSKrSSKrSSKrSSK J r J r Sr Sr "S S \R5rSS jrSS jrS rg)z¬Interface to the libbzip2 compression library. This module provides a file interface, classes for incremental (de)compression, and functions for one-shot (de)compression. )ÚBZ2FileÚ BZ2CompressorÚBZ2DecompressorÚopenÚcompressÚ decompressz%Nadeem Vawda é)rN)rréécóâ•\rSrSrSrSSS.SjjrSr\S5r\S5r \S 5r S r S r S r S rSSjrSSjrSSjrSrSSjrSSjrSrSr\R04SjrSrSrg)réa,A file object providing transparent bzip2 (de)compression. A BZ2File can act as a wrapper for an existing file object, or refer directly to a named file on disk. Note that BZ2File provides a *binary* file interface - data read is returned as bytes, and data to be written should be given as bytes. é ©Ú compresslevelcó•SUlSUlSUlSUs=::aS::d O [S5eUS;a Sn[nOlUS;aS n[ n[ U5UlOMUS ;aS n[ n[ U5UlO.US ;aS n[ n[ U5UlO[SU<35e[U[[[R45(a[X5UlSUlX@lO:[US5(d[US5(a XlX@lO [S5eUR[:XaD[ R""UR[$[&S9n[(R*"U5UlgSUlg)a¨Open a bzip2-compressed file. If filename is a str, bytes, or PathLike object, it gives the name of the file to be opened. Otherwise, it should be a file object, which will be used to read or write the compressed data. mode can be 'r' for reading (default), 'w' for (over)writing, 'x' for creating exclusively, or 'a' for appending. These can equivalently be given as 'rb', 'wb', 'xb', and 'ab'. If mode is 'w', 'x' or 'a', compresslevel can be a number between 1 and 9 specifying the level of compression: 1 produces the least compression, and 9 (default) produces the most compression. If mode is 'r', the input file may be the concatenation of multiple compressed streams. NFr r z%compresslevel must be between 1 and 9)ÚÚrÚrbr)ÚwÚwbr)ÚxÚxbr)ÚaÚabrúInvalid mode: TÚreadÚwritez6filename must be a str, bytes, file or PathLike object)Útrailing_errorr)Ú_fpÚ_closefpÚ_modeÚ ValueErrorÚ _MODE_READÚ _MODE_WRITErÚ _compressorÚ isinstanceÚstrÚbytesÚosÚPathLikeÚ _builtin_openÚhasattrÚ TypeErrorÚ _compressionÚDecompressReaderrÚOSErrorÚioÚBufferedReaderÚ_bufferÚ_pos)ÚselfÚfilenameÚmoderÚ mode_codeÚraws Ú*/opt/alt/python313/lib64/python3.13/bz2.pyÚ__init__ÚBZ2File.__init__%sN€ð$ˆŒØˆŒ ؈Œ à�]Õ' aÕ'ÜÐDÓEÐ Eà �?Ó "؈DÜ"‰IØ �[Ó ØˆDÜ#ˆIÜ,¨]Ó;ˆDÕ Ø �[Ó ØˆDÜ#ˆIÜ,¨]Ó;ˆDÕ Ø �[Ó ØˆDÜ#ˆIÜ,¨]Ó;ˆDÕ å²4Ð9Ó:Ð :ä �h¤¤e¬R¯[©[Ð 9× :Ñ :Ü$ XÓ4ˆDŒHØ ˆDŒMØ"�JÜ �X˜v× &Ñ &¬'°(¸G×*DÑ*DØŒHØ"�JäÐTÓUÐ Uà �:‰:œÓ #Ü×/Ò/°·±Ü´ñ9ˆCä×,Ò,¨SÓ1ˆD�LàˆD�Iócóš•UR(agUR[:XaURR 5 ONUR[ :Xa:UR RURR55 SUlUR(aUR R 5 SUlSUl SUlg!SUlSUl SUlf=f!UR(aUR R 5 SUlSUl SUlf!SUlSUl SUlf=f=f)z“Flush and close the file. May be called more than once without error. Once the file is closed, any other operation on it will raise a ValueError. NF) Úclosedr r"r2Úcloser#rrr$Úflushr©r4s r9r?Ú BZ2File.closeasò€ð �;�;Ø ð $Ø�z‰zœZÓ'Ø— ‘ ×"Ñ"Õ$Ø—‘œ{Ó*Ø—‘—‘˜t×/Ñ/×5Ñ5Ó7Ô8Ø#'�Ô ð $Ø—=—=Ø—H‘H—N‘NÔ$à�”Ø %�” Ø#�• øð �”Ø %�” Ø#�• ûð  $Ø—=—=Ø—H‘H—N‘NÔ$à�”Ø %�” Ø#�• øð �”Ø %�” Ø#�• ýs0”A=C-Â+CÃC*Ã-E Ã/+D0ÄE Ä0EÅE có•URSL$)zTrue if this file is closed.N)rrAs r9r>ÚBZ2File.closedxs€ð�x‰x˜4ÐÐr<cóN•UR5 URR$)N)Ú_check_not_closedrÚnamerAs r9rGÚ BZ2File.name}s€à ×ÑÔ Ø�x‰x�}‰}Ðr<có2•UR[:XaS$S$)Nrr)r r#rAs r9r6Ú BZ2File.mode‚s€à—z‘z¤[Ó0ˆtÐ:°dÐ:r<cóV•UR5 URR5$)z3Return the file descriptor for the underlying file.)rFrÚfilenorAs r9rLÚBZ2File.fileno†s€à ×ÑÔ Ø�x‰x�‰Ó Ð r<cód•UR5=(a URR5$)z)Return whether the file supports seeking.)Úreadabler2ÚseekablerAs r9rPÚBZ2File.seekable‹s €à�}‰}‹×: 4§<¡<×#8Ñ#8Ó#:Ð:r<cóH•UR5 UR[:H$)z/Return whether the file was opened for reading.)rFr r"rAs r9rOÚBZ2File.readable�s€à ×ÑÔ Ø�z‰zœZÑ'Ð'r<cóH•UR5 UR[:H$)z/Return whether the file was opened for writing.)rFr r#rAs r9ÚwritableÚBZ2File.writable”s€à ×ÑÔ Ø�z‰zœ[Ñ(Ð(r<cóX•UR5 URRU5$)z§Return buffered data without advancing the file position. Always returns at least one byte of data, unless at EOF. The exact number of bytes returned is unspecified. )Ú_check_can_readr2Úpeek)r4Úns r9rYÚ BZ2File.peek™s'€ð ×ÑÔð�|‰|× Ñ  Ó#Ð#r<cóX•UR5 URRU5$)z™Read up to size uncompressed bytes from the file. If size is negative or omitted, read until EOF is reached. Returns b'' if the file is already at EOF. )rXr2r©r4Úsizes r9rÚ BZ2File.read¥s%€ð ×ÑÔØ�|‰|× Ñ  Ó&Ð&r<có„•UR5 US:a[RnURR U5$)zÊRead up to size uncompressed bytes, while trying to avoid making multiple reads from the underlying stream. Reads up to a buffer's worth of data if size is negative. Returns b'' if the file is at EOF. r)rXr0ÚDEFAULT_BUFFER_SIZEr2Úread1r]s r9rbÚ BZ2File.read1®s7€ð ×ÑÔØ �!‹8Ü×)Ñ)ˆDØ�|‰|×!Ñ! $Ó'Ð'r<cóX•UR5 URRU5$)zBRead bytes into b. Returns the number of bytes read (0 for EOF). )rXr2Úreadinto)r4Úbs r9reÚBZ2File.readintoºs%€ð ×ÑÔØ�|‰|×$Ñ$ QÓ'Ð'r<cóÚ•[U[5(d,[US5(d [S5eUR 5nUR 5 UR RU5$)zíRead a line of uncompressed bytes from the file. The terminating newline (if present) is retained. If size is non-negative, no more than size bytes will be read (in which case the line may be incomplete). Returns b'' if already at EOF. Ú __index__úInteger argument expected)r%Úintr+r,rirXr2Úreadliner]s r9rlÚBZ2File.readlineÂsW€ô˜$¤×$Ñ$ܘ4 ×-Ñ-ÜÐ ;Ó<Ð<Ø—>‘>Ó#ˆDØ ×ÑÔØ�|‰|×$Ñ$ TÓ*Ð*r<cóÚ•[U[5(d,[US5(d [S5eUR 5nUR 5 UR RU5$)zÙRead a list of lines of uncompressed bytes from the file. size can be specified to control the number of lines read: no further lines will be read once the total size of the lines read so far equals or exceeds size. rirj)r%rkr+r,rirXr2Ú readlinesr]s r9roÚBZ2File.readlinesÐsW€ô˜$¤×$Ñ$ܘ4 ×-Ñ-ÜÐ ;Ó<Ð<Ø—>‘>Ó#ˆDØ ×ÑÔØ�|‰|×%Ñ% dÓ+Ð+r<có8•UR5 [U[[45(a [ U5nO[ U5nUR nURRU5nURRU5 U=RU- sl U$)zèWrite a byte string to the file. Returns the number of uncompressed bytes written, which is always the length of data in bytes. Note that due to buffering, the file on disk may not reflect the data written until close() is called. ) Ú_check_can_writer%r'Ú bytearrayÚlenÚ memoryviewÚnbytesr$rrrr3)r4ÚdataÚlengthÚ compresseds r9rÚ BZ2File.writeÞsy€ð ×ÑÔÜ �dœU¤IÐ.× /Ñ /ܘ“Y‰Fô˜dÓ#ˆDØ—[‘[ˆFà×%Ñ%×.Ñ.¨tÓ4ˆ Ø �‰�‰�zÔ"Ø � Š �VÑ� ؈ r<có@•[RRX5$)zÑWrite a sequence of byte strings to the file. Returns the number of uncompressed bytes written. seq can be any iterable yielding byte strings. Line separators are not added between the written byte strings. )r-Ú BaseStreamÚ writelines)r4Úseqs r9r}ÚBZ2File.writelinesós€ô×&Ñ&×1Ñ1°$Ó<ÐrGr6rLrPrOrUrYrrbrerlrorr}r0ÚSEEK_SETr‚r‡Ú__static_attributes__©r<r9rrs¤†ñð:¸Aö:òx$ð.ñ óð ðñóððñ;óð;ò!ò ;ò(ò )ô $ô'ô (ò(ô +ô ,òò*=ð#%§+¡+ô1õ$r<rcó0•SU;aSU;a[SU<35eO*Ub [S5eUb [S5eUb [S5eURSS5n[XUS9nSU;a-[R"U5n[R "XsXE5$U$) aåOpen a bzip2-compressed file in binary or text mode. The filename argument can be an actual filename (a str, bytes, or PathLike object), or an existing file object to read from or write to. The mode argument can be "r", "rb", "w", "wb", "x", "xb", "a" or "ab" for binary mode, or "rt", "wt", "xt" or "at" for text mode. The default mode is "rb", and the default compresslevel is 9. For binary mode, this function is equivalent to the BZ2File constructor: BZ2File(filename, mode, compresslevel). In this case, the encoding, errors and newline arguments must not be provided. For text mode, a BZ2File object is created, and wrapped in an io.TextIOWrapper instance with the specified encoding, error handling behavior, and line ending(s). Útrfrz0Argument 'encoding' not supported in binary modez.Argument 'errors' not supported in binary modez/Argument 'newline' not supported in binary moderr)r!Úreplacerr0Ú text_encodingÚ TextIOWrapper)r5r6rÚencodingÚerrorsÚnewlineÚbz_modeÚ binary_files r9rrs©€ð* ˆdƒ{Ø �$‹;ݲ4Ð9Ó:Ð :ð ð Ñ ÜÐOÓPÐ PØ Ñ ÜÐMÓNÐ NØ Ñ ÜÐNÓOÐ Oà�l‰l˜3 Ó#€Gܘ(¸=ÑI€Kà ˆdƒ{Ü×#Ò# HÓ-ˆÜ×Ò  °vÓGÐGàÐr<có\•[U5nURU5UR5-$)z˜Compress a block of data. compresslevel, if given, must be a number between 1 and 9. For incremental compression, use a BZ2Compressor object instead. )rrr@)rwrÚcomps r9rrAs(€ô ˜Ó '€DØ �=‰=˜Ó  §¡£Ñ -Ð-r<có$•/nU(a^[5nURU5nURU5 UR(d [ S5eUR nU(aM^SRU5$![a U(aM%ef=f)zbDecompress a block of data. For incremental decompression, use a BZ2Decompressor object instead. zACompressed data ended before the end-of-stream marker was reachedr<)rrr/ÚappendÚeofr!Ú unused_dataÚjoin)rwÚresultsÚdecompÚress r9rrLs�€ð €GÞ Ü Ó"ˆð Ø×#Ñ# DÓ)ˆCð �‰�sÔØ�z�zÜð@óAð Aà×!Ñ!ˆ÷ ˆ$ð �8‰8�GÓ Ðøôó ÞÚàð  ús•A9Á9B B)rr NNN)r )rŽÚ__all__Ú __author__Úbuiltinsrr*r0r(r-Ú_bz2rrr"r#r|rrrr’r<r9Úr«s`ðñò  -€ð5€ å*Û Û Ûç/ð€ à€ ôzˆl×%Ñ%ôzðz-.Ø-1ô'ôT.ór<