Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
3
N”ªj¢m ã @ sB d Z ddddddddd d
ddd
g
ZddlZddlZddlZddlZ ddl
ZddlZ
ddlmZ ddlZyddlZW n ek
rŽ ddlZY nX ejZe je jB e jB Zee dƒr¼ee jO ZeZee dƒrÔee jO Zee dƒræe j Z ndZ dZ!eƒ Z"ee dƒ�re j#Z$nee dƒ�re j%Z$ndd„ Z$dd„ Z&dd„ Z'dd„ Z(G dd „ d ƒZ)d!d"„ Z*d#d$„ Z+da,d%d&„ Z-d'd(„ Z.d)d*„ Z/d+d,„ Z0d-d „ Z1d.d„ Z2da3d/d„ Z4d0d
„ Z5dDd2d„Z6dEd3d„Z7d4e!dfd5d„Z8G d6d7„ d7ƒZ9G d8d9„ d9ƒZ:dGd=d„Z;e jk�se j=j>d?k�re;Z?nee d@ƒa@dIdAd„Z?G dBd„ dƒZAG dCd„ deBƒZCdS )Ja� Temporary files.
This module provides generic, low- and high-level interfaces for
creating temporary files and directories. All of the interfaces
provided by this module can be used without fear of race conditions
except for 'mktemp'. 'mktemp' is subject to race conditions and
should not be used; it is provided for backward compatibility only.
The default path names are returned as str. If you supply bytes as
input, all return values will be in bytes. Ex:
>>> tempfile.mkstemp()
(4, '/tmp/tmptpu9nin8')
>>> tempfile.mkdtemp(suffix=b'')
b'/tmp/tmppbi8f0hy'
This module also provides some data items to the user:
TMP_MAX - maximum number of names that will be tried before
giving up.
tempdir - If this is set to a string before the first use of
any routine from this module, it will be considered as
another candidate location to store temporary files.
ÚNamedTemporaryFileÚ
TemporaryFileÚSpooledTemporaryFileÚTemporaryDirectoryÚmkstempÚmkdtempÚmktempÚTMP_MAXÚ
gettempprefixÚtempdirÚ
gettempdirÚgettempprefixbÚgettempdirbé N)ÚRandomÚ
O_NOFOLLOWÚO_BINARYi' ZtmpÚlstatÚstatc C s t j| t jƒ}t j|ƒ d S )N)Ú_osÚopenÚO_RDONLYÚclose)ÚfnÚfd© r ú /usr/lib64/python3.6/tempfile.pyÚ_statT s r c C s* yt | ƒ W n tk
r dS X dS d S )NFT)r ÚOSError)r r r r Ú_existsX s
r c G s` d}xJ| D ]B}|dkrq
t |tƒr8|tkr2tdƒ‚t}q
|tkrHtdƒ‚t}q
W |dkr\tS |S )zBLook at the type of all args and divine their implied return type.Nz1Can't mix bytes and non-bytes in path components.)Ú
isinstanceÚbytesÚstrÚ TypeError)ÚargsZreturn_typeÚargr r r Ú_infer_return_typea s
r% c C sd t | ||ƒ}|dkr|ƒ }| dkr:|tkr0t} n
tjtƒ} |dkrX|tkrRtƒ }ntƒ }| |||fS )z9Common parameter processing for most APIs in this module.N)r% r! Útemplater Úfsencoder r
)ÚprefixÚsuffixÚdirÚoutput_typer r r Ú_sanitize_paramsv s
r, c @ s0 e Zd ZdZdZedd„ ƒZdd„ Zdd„ Zd S )
Ú_RandomNameSequencea, An instance of _RandomNameSequence generates an endless
sequence of unpredictable strings which can safely be incorporated
into file names. Each string is eight characters long. Multiple
threads can safely use the same instance at the same time.
_RandomNameSequence is an iterator.Z%abcdefghijklmnopqrstuvwxyz0123456789_c C s, t jƒ }|t| dd ƒkr&tƒ | _|| _| jS )NÚ_rng_pid)r ÚgetpidÚgetattrÚ_RandomZ_rngr. )ÚselfZcur_pidr r r Úrng’ s
z_RandomNameSequence.rngc C s | S )Nr )r2 r r r Ú__iter__š s z_RandomNameSequence.__iter__c s0 | j ‰ | jj‰‡ ‡fdd„tdƒD ƒ}dj|ƒS )Nc s g | ]}ˆˆ ƒ‘qS r r )Ú.0Zdummy)ÚcÚchooser r ú
s z0_RandomNameSequence.__next__..é Ú )Ú
charactersr3 ZchoiceÚrangeÚjoin)r2 Zlettersr )r6 r7 r Ú__next__� s z_RandomNameSequence.__next__N) Ú__name__Ú
__module__Ú__qualname__Ú__doc__r; Úpropertyr3 r4 r> r r r r r- ˆ s
r- c C s¨ g } x$dD ]}t j|ƒ}|r
| j|ƒ q
W t jdkr\| jt jjdƒt jjdƒddd d
gƒ n| jddd
gƒ y| jt jƒ ƒ W n$ t t
fk
r¢ | jt jƒ Y nX | S )z[Generate a list of candidate temporary directories which
_get_default_tempdir will try.ÚTMPDIRÚTEMPÚTMPÚntz~\AppData\Local\Tempz%SYSTEMROOT%\Tempzc:\tempzc:\tmpz\tempz\tmpz/tmpz/var/tmpz/usr/tmp)rD rE rF )r ÚgetenvÚappendÚnameÚextendÚpathÚ
expanduserÚ
expandvarsÚgetcwdÚAttributeErrorr Úcurdir)ÚdirlistZenvnameÚdirnamer r r Ú_candidate_tempdir_list£ s
rT c C s4 t ƒ } tƒ }�x|D �]}|tjkr0tjj|ƒ}xêtdƒD ]Þ}t| ƒ}tjj||ƒ}y\tj |t
dƒ}z