⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.67
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
lib64
/
python3.9
/
__pycache__
/
View File Name :
tempfile.cpython-39.opt-1.pyc
a DOg;m @ s d Z g dZddlZddlZddlZddlZ ddl ZddlZ ddlmZ ddlZddlZddlZddlZejZe je jB e jB Zee dree jO ZeZ ee dre e j!O Z ee dre j"Z"ndZ"d Z#e Z$d d Z%dd Z&dd Z'G dd dZ(dd Z)dd Z*da+dd Z,dd Z-dd Z.dd Z/dd Z0d d! Z1da2d"d# Z3d$d% Z4dAd'd(Z5dBd)d*Z6d+e#dfd,d-Z7G d.d/ d/Z8G d0d1 d1Z9dCdd5d6d7Z:e j;d8ksej
dDdd5d;d<Z=G d=d> d>Z?G d?d@ d@e@ZAdS )Ea 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 TemporaryFileSpooledTemporaryFileTemporaryDirectorymkstempmkdtempmktempTMP_MAX gettempprefixtempdir gettempdirgettempprefixbgettempdirb N)Random O_NOFOLLOWO_BINARYr i' tmpc C s, zt | W n ty" Y dS 0 dS d S )NFT)_oslstatOSError)fn r /usr/lib64/python3.9/tempfile.py_existsL s r c G sr d}| D ]X}|du rqt |tjr,t|}t |trL|tu rFtdt}q|tu r\tdt}q|du rntS |S )zBLook at the type of all args and divine their implied return type.Nz1Can't mix bytes and non-bytes in path components.) isinstancer PathLikefspathbytesstr TypeError)argsreturn_typeargr r r _infer_return_typeU s r# c C sd t | ||}|du r| }| du r:|tu r0t} n tt} |du rX|tu rRt }nt }| |||fS )z9Common parameter processing for most APIs in this module.N)r# r templater fsencoder r )prefixsuffixdiroutput_typer r r _sanitize_paramsn 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.%abcdefghijklmnopqrstuvwxyz0123456789_c C s, t }|t| dd kr&t | _|| _| jS )N_rng_pid)r getpidgetattr_Random_rngr- )selfcur_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 fddtdD }d|S )Nc s g | ]} qS r r ).0dummycchooser r