+
    Tj                     x    ^ RI t ^ RIHtHtHt ^ RIHt ^ RIHt  ! R R]4      t	 ! R R]	4      t
R	 tR
 tR tR# )    N)BytesIOStringIOUnsupportedOperation)FileProxyMixin)cached_propertyc                      a  ] tR t^t o RtRR ltR tR tR tR t	]
R 4       tRR ltRR	 ltR
 tR tR tRR ltR tRtV tR# )FileNc                    Wn         Vf   \        VRR 4      pW n        \        VR4      '       d   VP                  V n        R # R # )Nnamemode)filegetattrr   hasattrr   )selfr   r   s   &&&K/var/www/idalgo/venv/lib/python3.14/site-packages/django/core/files/base.py__init__File.__init__   s<    	<4.D	4  		DI !    c                .    V P                   ;'       g    R # ) r   r   s   &r   __str__File.__str__   s    yyBr   c                T    R V P                   P                  : RT ;'       g    R: R2# )<z: None>)	__class____name__r   s   &r   __repr__File.__repr__   s    !^^44dnnfnEEr   c                ,    \        V P                  4      # N)boolr   r   s   &r   __bool__File.__bool__   s    DIIr   c                    V P                   # r$   sizer   s   &r   __len__File.__len__   s    yyr   c                   \        V P                  R 4      '       d   V P                  P                  # \        V P                  R4      '       d5    \        P                  P                  V P                  P                  4      # \        V P                  R4      '       d   \        V P                  R4      '       d|   V P                  P                  4       pV P                  P                  ^ \        P                  4       V P                  P                  4       pV P                  P                  V4       V# \        R4      h  \        \        3 d     Li ; i)r*   r   tellseekz$Unable to determine the file's size.)r   r   r*   ospathgetsizer   OSError	TypeErrorr.   r/   SEEK_ENDAttributeError)r   posr*   s   &  r   r*   	File.size   s    499f%%99>>!499f%%wwtyy~~66 499f%%'$))V*D*D)).."CIINN1bkk*99>>#DIINN3KCDD Y' s   2E EEc              #     "   T;'       g    V P                   p V P                  ^ 4        V P	                  V4      pV'       g   R# Vx  K"    \        \        3 d     L5i ; i5i)zc
Read the file and yield chunks of ``chunk_size`` bytes (defaults to
``File.DEFAULT_CHUNK_SIZE``).
N)DEFAULT_CHUNK_SIZEr/   r6   r   read)r   
chunk_sizedatas   && r   chunksFile.chunks0   sa     
  ::4#:#:
	IIaL 99Z(DJ  45 		s-   A$A A$A$A!A$ A!!A$c                H    V P                   T;'       g    V P                  8  # )z
Return ``True`` if you can expect multiple chunks.

NB: If a particular file representation is in memory, subclasses should
always return ``False`` -- there's no good reason to read from memory
in chunks.
)r*   r:   )r   r<   s   &&r   multiple_chunksFile.multiple_chunksA   s!     yyJAA$*A*ABBr   c              #  (  "   R pV P                  4        Fm  pVP                  R4       FU  pV'       d2   \        V4      '       d   \        V4      '       g   Vx  MW,           pR p\	        V4      '       d   Vx  KS  TpKW  	  Ko  	  Ve   Vx  R # R # 5i)NT)r>   
splitlinesendswith_cr	equals_lfendswith_lf)r   buffer_chunklines   &   r   __iter__File.__iter__K   s     [[]E((."7++IdOO%  '~"G t$$J"G% / #* M s   BBc                    V # r$    r   s   &r   	__enter__File.__enter__f   s    r   c                &    V P                  4        R # r$   )close)r   exc_type	exc_valuetbs   &&&&r   __exit__File.__exit__i   s    

r   c                N   V P                   '       g   V P                  ^ 4       V # V P                  '       de   \        P                  P                  V P                  4      '       d6   \        V P                  T;'       g    V P                  .VO5/ VB V n        V # \        R4      h)r   zThe file cannot be reopened.)
closedr/   r   r0   r1   existsopenr   r   
ValueError)r   r   argskwargss   &&*,r   r[   	File.openl   s{    {{{IIaL
 	 YYY277>>$))44TYY(9(9		KDKFKDI  ;<<r   c                :    V P                   P                  4        R # r$   )r   rR   r   s   &r   rR   
File.closeu   s    		r   )r   r   r   i   r$   )r    
__module____qualname____firstlineno__r:   r   r   r!   r&   r+   r   r*   r>   rA   rK   rO   rV   r[   rR   __static_attributes____classdictcell__)__classdict__s   @r   r	   r	      sd     #"F E E "C6 r   r	   c                   \   a a ] tR t^yt oRtR	V 3R lltR tR tR	R ltR t	R t
RtVtV ;t# )
ContentFilezM
A File-like object that takes just raw content, rather than an actual file.
c                   < \        V\        4      '       d   \        M\        p\        SV `  V! V4      VR 7       \        V4      V n        R# )r   N)
isinstancestrr   r   superr   lenr*   )r   contentr   stream_classr   s   &&& r   r   ContentFile.__init__~   s8    #-gs#;#;xg.T:L	r   c                    R # )zRaw contentrN   r   s   &r   r   ContentFile.__str__   s    r   c                    R # )TrN   r   s   &r   r&   ContentFile.__bool__   s    r   c                (    V P                  ^ 4       V # )r   )r/   )r   r   s   &&r   r[   ContentFile.open   s    		!r   c                    R # r$   rN   r   s   &r   rR   ContentFile.close   s    r   c                p    V P                   P                  R R4       V P                  P                  V4      # )r*   N)__dict__popr   write)r   r=   s   &&r   r}   ContentFile.write   s)    &$'yyt$$r   r)   r$   )r    rb   rc   rd   __doc__r   r   r&   r[   rR   r}   re   rf   __classcell__)r   rg   s   @@r   ri   ri   y   s-     !
% %r   ri   c                \    T P                  \        V \        4      '       d   R4      # R4      # )z9Return True if line (a text or bytestring) ends with ''.   endswithrk   rl   rJ   s   &r   rE   rE      %    ==D#!6!6BBEBBr   c                \    T P                  \        V \        4      '       d   R4      # R4      # )z9Return True if line (a text or bytestring) ends with '
'.
   
r   r   s   &r   rG   rG      r   r   c                @    T \        V \        4      '       d   R8H  # R8H  # )z6Return True if line (a text or bytestring) equals '
'.r   r   )rk   rl   r   s   &r   rF   rF      s!    JtS11D==u==r   )r0   ior   r   r   django.core.files.utilsr   django.utils.functionalr   r	   ri   rE   rG   rF   rN   r   r   <module>r      s@    	 6 6 2 3n> nb%$ %8C
C
>r   