+
    T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   &&&&&&  K/var/www/idalgo/venv/lib/python3.14/site-packages/django/core/files/temp.py__init__TemporaryFile.__init__*   s5    ''v#NHBI		"G4DI %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    $$$$(!IIOO%KK		* %    s"   A A& A#"A#&A54A5c                &    V P                  4        R # N)r   r   s   &r   __del__TemporaryFile.__del__A   s    JJLr   c                :    V P                   P                  4        V # r    )r   	__enter__r   s   &r   r$   TemporaryFile.__enter__D   s    II!Kr   c                >    V P                   P                  WV4       R # r    )r   __exit__)r   excvaluetbs   &&&&r   r'   TemporaryFile.__exit__H   s    IIs2.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 77d?)/ )/V '!44  
r   