|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/core/files/ |
Upload File : |
�
r�\c @ sx d Z d d l Z d d l Z d d l m Z d Z e j d k rb d e f d � � YZ e Z n e j Z e j Z d S(
s�
The temp module provides a NamedTemporaryFile that can be re-opened on any
platform. Most platforms use the standard Python tempfile.TemporaryFile class,
but MS Windows users are given a custom class.
This is needed because in Windows NT, the default implementation of
NamedTemporaryFile uses the O_TEMPORARY flag, and thus cannot be reopened [1].
1: http://mail.python.org/pipermail/python-list/2005-December/359474.html
i����N( t FileProxyMixint NamedTemporaryFilet
gettempdirt ntt
TemporaryFilec B sP e Z d Z d d d d d d � Z e j Z d � Z e d � � Z d � Z
RS( s�
Temporary file object constructor that works in Windows and supports
reopening of the temporary file in windows.
s w+bi����t c C sR t j d | d | d | � \ } } | | _ t j | | | � | _ t | _ d S( Nt suffixt prefixt dir( t tempfilet mkstempt namet ost fdopent filet Falset close_called( t selft modet bufsizeR R R t fdR ( ( s8 /tmp/pip-install-XxeQeY/django/django/core/files/temp.pyt __init__ s
c C sl | j sh t | _ y | j j � Wn t t f k
r<