Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
lib
/
python3
/
dist-packages
/
sphinx
/
util
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: pycompat.cpython-310.pyc
o �$�a% � @ s\ d Z ddlZddlmZmZ ddlmZ dedefdd�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 C s� t jdtdd� zddlm} ddlm}m} W n ty' } zt |�d }~ww |d�}||�}|� | �d }z|�|d�}W t|�S |ya } z| jd \} }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.refactorr r �ImportError�SyntaxError�_read_python_source�refactor_string�context�msg�value�str)r r r r �exc�fixers�refactoring_tool�source�tree�err�lineno�offset� r"