403Webshell
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/ext/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/ext/__pycache__/duration.cpython-39.opt-1.pyc
a

�ab��@sdZddlmZmZddlmZddlmZddlmZm	Z	m
Z
mZddlm
Z
ddlmZddlmZdd	lmZdd
lmZe�e�ZGdd�de�Zed
d�dd�Zeee
ed
d�dd�Zee
jd
d�dd�Zeed
d�dd�Z ee	eefd�dd�Z!d
S)z�
    sphinx.ext.duration
    ~~~~~~~~~~~~~~~~~~~

    Measure durations of Sphinx processing.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�datetime�	timedelta)�islice)�
itemgetter)�Any�Dict�List�cast)�nodes)�Sphinx)�Domain)�__)�loggingc@szeZdZdZdZeeeefd�dd��Z	edd�dd	�Z
dd�d
d�Zedd�d
d�Ze
eeeefdd�dd�ZdS)�DurationDomainz,A domain for durations of Sphinx processing.�duration)�returncCs|j�di�S)N�reading_durations)�data�
setdefault��self�r�7/usr/lib/python3.9/site-packages/sphinx/ext/duration.pyrsz DurationDomain.reading_durationsN)rrcCs||j|jj<dS�N)r�env�docname)rrrrr�note_reading_duration"sz$DurationDomain.note_reading_durationcCs|j��dSr)r�clearrrrrr%szDurationDomain.clear)rrcCs|j�|d�dSr)r�pop)rrrrr�	clear_doc(szDurationDomain.clear_doc)�docnames�	otherdatarcCs(|��D]\}}||vr||j|<qdSr)�itemsr)rr r!rrrrr�merge_domaindata+szDurationDomain.merge_domaindata)�__name__�
__module__�__qualname__�__doc__�name�propertyr�strrrrrrrr#rrrrrsrN)�apprcCstt|j�d��}|��dS)zTInitialize DurationDomain on bootstrap.

    This clears results of last build.
    rN)r	rr�
get_domainr)r+�domainrrr�on_builder_inited1sr.)r+r�contentrcCst��|jjd<dS)z"Start to measure reading duration.�
started_atN)r�nowr�	temp_data)r+rr/rrr�on_source_read:sr3)r+�doctreercCs:|jj�d�}t��|}tt|j�d��}|�|�dS)zRecord a reading duration.r0rN)	rr2�getrr1r	rr,r)r+r4r0rr-rrr�on_doctree_read?sr6)r+�errorrcCsztt|j�d��}t|j��td�dd�}|s2dSt�	d�t�	t
d��t|d�D] \}}t�	d	|j|j
d
|�qTdS)z*Display duration ranking on current build.r�T)�key�reverseN�zH====================== slowest reading durations =======================�z
%d.%03d %si�)r	rrr,�sortedrr"r�logger�infor
rZsecondsZmicroseconds)r+r7r-Z	durationsr�drrr�on_build_finishedGs
rAcCsF|�t�|�dt�|�dt�|�dt�|�dt�dddd�S)Nzbuilder-initedzsource-readzdoctree-readzbuild-finishedZbuiltinT)�versionZparallel_read_safeZparallel_write_safe)Z
add_domainrZconnectr.r3r6rA)r+rrr�setupTs
�rC)"r'rr�	itertoolsr�operatorr�typingrrrr	Zdocutilsr
Zsphinx.applicationrZsphinx.domainsrZ
sphinx.localer
Zsphinx.utilrZ	getLoggerr$r>rr.r*r3Zdocumentr6�	ExceptionrArCrrrr�<module>s 

	

Youez - 2016 - github.com/yon3zu
LinuXploit