Files
old-saburly-wagtail-web/env/lib/python3.10/site-packages/PIL/__pycache__/ContainerIO.cpython-310.pyc

56 lines
3.2 KiB
Plaintext
Raw Normal View History

2024-08-27 20:33:44 +02:00
o
<00><><EFBFBD>fm <00>@sDddlmZddlZddlmZmZmZmZGdd<05>dee<00>ZdS)<06>)<01> annotationsN)<04>IO<49>AnyStr<74>Generic<69>Literalc@s^eZdZdZdd d
<EFBFBD>Zd d d <0A>Zejfd!dd<11>Zd"dd<13>Z d#d$dd<18>Z
d%dd<1A>Z d&dd<1D>Z dS)'<27> ContainerIOzm
A file object that provides read access to a part of an existing
file (for example a TAR file).
<20>file<6C>
IO[AnyStr]<5D>offset<65>int<6E>length<74>return<72>NonecCs(||_d|_||_||_|j<00>|<02>dS)z<>
Create file object.
:param file: Existing file.
:param offset: Start of region, in bytes.
:param length: Size of region, in bytes.
rN)<05>fh<66>posr
r <00>seek)<04>selfrr
r <00>r<00>Q/home/amir/Desktop/saburlyweb/env/lib/python3.10/site-packages/PIL/ContainerIO.py<70>__init__s
zContainerIO.__init__<5F>boolcCsdS)NFr<00>rrrr<00>isatty-szContainerIO.isatty<74>mode<64>Literal[0, 1, 2]cCs`|dkr |j||_n|dkr|j||_n||_tdt|j|j<01><02>|_|j<04>|j|j<00>dS)a
Move file pointer.
:param offset: Offset in bytes.
:param mode: Starting position. Use 0 for beginning of region, 1
for current offset, and 2 for end of region. You cannot move
the pointer outside the defined region.
<20><00>rN)rr <00>max<61>minrrr
)rr
rrrrr0s zContainerIO.seekcCs|jS)ze
Get current file pointer.
:returns: Offset from start of region, in bytes.
)rrrrr<00>tellCszContainerIO.tellr<00>nrcCsT|r t||j|j<00>}n|j|j}|sd|jjvrdSdS|j||_|j<03>|<01>S)z<>
Read data.
:param n: Number of bytes to read. If omitted or zero,
read until end of region.
:returns: An 8-bit string.
<20>b<><00>)rr rrr<00>read)rr rrrr$Ks   zContainerIO.readcCsVd|jjvrdnd}d|jjvrdnd} |<00>d<07>}|s |S||}||kr* |Sq)zJ
Read a line of text.
:returns: An 8-bit string.
r!r"r#<00>
<EFBFBD>
Tr)rrr$)r<00>s<>newline_character<65>crrr<00>readline\s
<08><02>zContainerIO.readline<6E> list[AnyStr]cCs$g} |<00><00>}|s |S|<01>|<02>q)zZ
Read multiple lines of text.
:returns: A list of 8-bit strings.
)r*<00>append)r<00>linesr'rrr<00> readlinesms
<EFBFBD><02>zContainerIO.readlinesN)rr r
r r r r r)r r)r
r rrr r)r r )r)r r r r)r r)r r+) <0A>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__doc__rr<00>io<69>SEEK_SETrrr$r*r.rrrrrs


 
r) <09>
__future__rr3<00>typingrrrrrrrrr<00><module>s