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: //lib/python3/dist-packages/sphinx/util/__pycache__/pycompat.cpython-310.pyc
o

�$�a%�	@s\dZddlZddlmZmZddlmZdedefdd�Ze	fded	ed
eddfdd�Z
dS)
z�
    sphinx.util.pycompat
    ~~~~~~~~~~~~~~~~~~~~

    Stuff for Python version compatibility.

    :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Any�Callable)�RemovedInSphinx60Warning�filepath�returnc
Cs�tjdtdd�zddlm}ddlm}m}Wnty'}zt	|�d}~ww|d�}||�}|�
|�d}z|�|d�}Wt|�S|ya}	z|	jd	\}
}t	|	j
||
||	jf�|	�d}	~	ww)
Nz!convert_with_2to3() is deprecated���
stacklevelr)�
ParseError)�RefactoringTool�get_fixers_from_packagez
lib2to3.fixeszconf.py�)�warnings�warnr�lib2to3.pgen2.parser
�lib2to3.refactorrr�ImportError�SyntaxError�_read_python_source�refactor_string�context�msg�value�str)rr
rr�exc�fixers�refactoring_tool�source�tree�err�lineno�offset�r"�6/usr/lib/python3/dist-packages/sphinx/util/pycompat.py�convert_with_2to3s*������r$�_globals�opencCsrtjdtdd�ddlm}||d��}|��}Wd�n1s"wY|�|�}t||d�}t||�dS)Nzexecfile_() is deprecatedrrr)�fs_encoding�rb�exec)	rrr�sphinx.util.osutilr'�read�encode�compiler))rr%r&r'�fr�filepath_enc�coder"r"r#�	execfile_1s�
�
r1)�__doc__r�typingrr�sphinx.deprecationrrr$r&r1r"r"r"r#�<module>s
"