| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/ |
Upload File : |
a
�ab6 � @ s� d Z ddlZddlZddlZddlmZ ddlmZmZm Z m
Z
mZmZ zddl
Z
W n eyj dZ
Y n0 ddlmZ ddlmZ e�e�Ze
o�ejdkZG dd � d �ZG d
d� d�Zdee eee
e d
�dd�ZdS )z�
sphinx.util.parallel
~~~~~~~~~~~~~~~~~~~~
Parallel building utilities.
:copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
� N)�sqrt)�Any�Callable�Dict�List�Optional�Sequence)�SphinxParallelError)�logging�posixc @ sF e Zd ZdZd
edd�dd�Zdeeedd�dd �Zdd
�dd�Z dS )�SerialTaskszEHas the same interface as ParallelTasks, but executes tasks directly.� N��nproc�returnc C s d S �N� ��selfr r r �8/usr/lib/python3.9/site-packages/sphinx/util/parallel.py�__init__# s zSerialTasks.__init__�� task_func�arg�result_funcr c C s( |d ur||�}n|� }|r$||� d S r r )r r r r �resr r r �add_task&