Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/gunicorn/workers/__pycache__/workertmp.cpython-39.pyc
Ðазад
a j�hg � @ sJ d dl Z d dlZd dlZd dlmZ e�� Ze�d�ZG dd� de �Z dS )� N)�utilZCYGWINc @ s4 e Zd Zdd� Zdd� Zdd� Zdd� Zd d � ZdS )� WorkerTmpc C s� t �|j�}|j}|r.t j�|�s.td| ��tjd|d�\}}t �|� |jt � � ksf|j t �� krxt� ||j|j � z"ts�t�|� t �|dd�| _W n t �|� � Y n0 d| _d S )Nz)%s doesn't exist. Can't create workertmp.z wgunicorn-)�prefix�dirzw+br )�os�umaskZworker_tmp_dir�path�isdir�RuntimeError�tempfile�mkstemp�uid�geteuid�gid�getegidr �chown� IS_CYGWIN�unlink�fdopen�_tmp�close�spinner)�self�cfgZ old_umaskZfdir�fd�name� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/gunicorn/workers/workertmp.py�__init__ s zWorkerTmp.__init__c C s( | j d d | _ t�| j�� | j � d S )N� � )r r �fchmodr �fileno�r r r r �notify, s zWorkerTmp.notifyc C s t �| j�� �jS �N)r �fstatr r"