HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/sphinx/builders/__pycache__/text.cpython-310.pyc
o

�$�a��@s�dZddlmZddlmZmZmZmZmZddl	m
Z
ddlmZddl
mZddlmZddlmZdd	lmZdd
lmZmZddlmZmZe�e�ZGdd
�d
e�Zdedeeeffdd�Z dS)z�
    sphinx.builders.text
    ~~~~~~~~~~~~~~~~~~~~

    Plain-text Sphinx builder.

    :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�)�path)�Any�Dict�Iterator�Set�Tuple)�StringOutput)�Node)�Sphinx)�Builder)�__)�logging)�	ensuredir�os_path)�TextTranslator�
TextWriterc@s�eZdZUdZdZed�ZdZdZe	Z
dZee
d<ddd	�Zdeefd
d�Zdded
edefdd�Zdeeddfdd�Zdededdfdd�Zddd�ZdS)�TextBuilder�textz!The text files are in %(outdir)s.z.txtTN�current_docname�returncCs
i|_dS�N)�
secnumbers��self�r�6/usr/lib/python3/dist-packages/sphinx/builders/text.py�init&s
zTextBuilder.initc	cs��|jjD]D}||jjvr|Vqt�|j||j�}zt�|�}Wnty-d}Ynwzt�|j�	|��}||kr?|VWqt
yIYqwdS)Nr)�env�
found_docs�all_docsr�join�outdir�
out_suffix�getmtime�	Exception�doc2path�OSError)r�docname�
targetname�targetmtime�srcmtimerrr�get_outdated_docs*s(�����zTextBuilder.get_outdated_docsr'�typcCsdS)N�r)rr'r,rrr�get_target_uri<�zTextBuilder.get_target_uri�docnamescCst|�|_dSr)r�writer)rr0rrr�prepare_writing?szTextBuilder.prepare_writing�doctreec
Cs�||_|jj�|i�|_tdd�}|j�||�t�	|j
t|�|j�}t
t�|��z#t|ddd��}|�|jj�Wd�WdS1sGwYWdStyj}zt�td�||�WYd}~dSd}~ww)Nzutf-8)�encoding�wzerror writing file %s: %s)rr�toc_secnumbers�getrrr1�writerr r!rr"r�dirname�open�outputr&�logger�warningr)rr'r3�destination�outfilename�f�errrrr�	write_docBs
&� ��zTextBuilder.write_doccCsdSrrrrrr�finishOr/zTextBuilder.finish)rNr)�__name__�
__module__�__qualname__�name�formatr�epilogr"�allow_parallelr�default_translator_classr�str�__annotations__rrr+r.rr2r	rBrCrrrrrs


r�apprcCsN|�t�|�ddd�|�ddd�|�ddd�|�dd	d�d
ddd�S)N�text_sectioncharsz*=-~"+`r�
text_newlines�unix�text_add_secnumbersT�text_secnumber_suffixz. �builtin)�version�parallel_read_safe�parallel_write_safe)�add_builderr�add_config_value)rNrrr�setupSs
�rZN)!�__doc__�osr�typingrrrrr�docutils.ior�docutils.nodesr	�sphinx.applicationr
�sphinx.buildersr�
sphinx.localer�sphinx.utilr
�sphinx.util.osutilrr�sphinx.writers.textrr�	getLoggerrDr<rrLrZrrrr�<module>s

8