+
    ‡)ÙjÇ	  ã                   ó˜   € R t ^ RIt^ RIt^ RIHt Rt]P                  R8X  d    ! R R]4      t]tM]P                  t]P                  t	R# )a6  
The temp module provides a NamedTemporaryFile that can be reopened in the same
process on any platform. Most platforms use the standard Python
tempfile.NamedTemporaryFile class, but Windows users are given a custom class.

This is needed because the Python implementation of NamedTemporaryFile uses the
O_TEMPORARY flag under Windows, which prevents the file from being reopened
if the same flag is not provided [1][2]. Note that this does not address the
more general issue of opening a file for writing and reading in multiple
processes in a manner that works across platforms.

The custom version of NamedTemporaryFile doesn't support the same keyword
arguments available in tempfile.NamedTemporaryFile.

1: https://mail.python.org/pipermail/python-list/2005-December/336955.html
2: https://bugs.python.org/issue14243
N)ÚFileProxyMixinÚntc                   ó^   a € ] tR t^ t o RtR	R lt]P                  tR tR t	R t
R tRtV tR# )
ÚTemporaryFilezþ
Temporary file object constructor that supports reopening of the
temporary file in Windows.

Unlike tempfile.NamedTemporaryFile from the standard library,
__init__() doesn't support the 'delete', 'buffering', 'encoding', or
'newline' keyword arguments.
Nc                óŒ   € \         P                  ! W4VR 7      w  rgWpn        \        P                  ! WaV4      V n        RV n        R# ))ÚsuffixÚprefixÚdirFN)ÚtempfileÚmkstempÚnameÚosÚfdopenÚfileÚclose_called)ÚselfÚmodeÚbufsizer   r   r	   Úfdr   s   &&&&&&  ÚO/var/www/eggtrainer/venv/lib/python3.14/site-packages/django/core/files/temp.pyÚ__init__ÚTemporaryFile.__init__*   s5   € Ü×'Ò'¨vÈ#ÔN‰HˆBØŒIÜŸ	š	 "¨GÓ4ˆDŒIØ %ˆDÖó    c                óð   € V P                   '       gA   R V n          V P                  P                  4         V P	                  V P
                  4       R# R#   \         d     L-i ; i  \         d     R# i ; i)TN)r   r   ÚcloseÚOSErrorÚunlinkr   ©r   s   &r   r   ÚTemporaryFile.close5   sj   € Ø×$×$Ð$Ø$(�Ô!ðØ—I‘I—O‘OÔ%ðØ—K‘K §	¡	Ö*ñ %øô ô Ùðûô ô Úðús"   ›A ¶A& ÁA#Á"A#Á&A5Á4A5c                ó&   € V P                  4        R # ©N)r   r   s   &r   Ú__del__ÚTemporaryFile.__del__A   s   € Ø�J‰JŽLr   c                ó:   € V P                   P                  4        V # r    )r   Ú	__enter__r   s   &r   r$   ÚTemporaryFile.__enter__D   s   € Ø�I‰I×ÑÔ!ØˆKr   c                ó>   € V P                   P                  WV4       R # r    )r   Ú__exit__)r   ÚexcÚvalueÚtbs   &&&&r   r'   ÚTemporaryFile.__exit__H   s   € Ø�I‰I×Ñ˜s¨2Ö.r   )r   r   r   )zw+béÿÿÿÿÚ r-   N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r   r   r   r!   r$   r'   Ú__static_attributes__Ú__classdictcell__)Ú__classdict__s   @r   r   r       s3   ø‡ € ñ	ô	&ð —‘ˆò
	ò	ò	÷	/ð 	/r   r   )ÚNamedTemporaryFileÚ
gettempdir)
r2   r   r
   Údjango.core.files.utilsr   Ú__all__r   r   r6   r7   © r   r   Ú<module>r;      sU   ðñó$ 
Û å 2ð€ð ‡7�7ˆd„?ô)/˜ô )/ðV 'Ñà!×4Ñ4Ðà× Ñ ‚
r   