Hacked By AnonymousFox
�
�Q�f� � � � d Z dgZdZdZdZddlZddlZddlZddl Zddl
ZddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ dd lmZ d
� Zd� Z d� Z!d
� Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z* ejV dejX � Z-d� Z.d� Z/d� Z0d� Z1 e2ejf � Z4dPd�Z5d� Z6d� Z7d� Z8d� Z9i fd �Z: G d!� d"e;� Z<d#� Z=di fd$�Z> G d%� d&� Z? G d'� d(e� Z@ G d)� d*e?� ZA G d+� d,e� ZB G d-� d.e?� ZC G d/� d0eC� ZDd1� aEd2� ZFd3� ZGd4� ZHd5� ZId6� ZJd7� ZKd8� ZLd9� ZMdQd:�ZN eC� ZO eD� ZP eA� ZQdQd;�ZR dRd<�ZS dSd=�ZTdQd>�ZUdTd?�ZV G d@� dA� ZW eW� ZX G dB� dC� ZYdD� ZZdE� Z[dUdF�Z\dQdGdHdI�dJ�Z]dK� Z^dL� Z_dM� Z`dN� ZaebdOk( r ea� yy)Va Generate Python documentation in HTML or text for interactive use.
At the Python interactive prompt, calling help(thing) on a Python object
documents the object, and calling help() starts up an interactive
help session.
Or, at the shell command line outside of Python:
Run "pydoc <name>" to show documentation on something. <name> may be
the name of a function, module, package, or a dotted reference to a
class or function within a module or module in a package. If the
argument contains a path segment delimiter (e.g. slash on Unix,
backslash on Windows) it is treated as the path to a Python source file.
Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines
of all available modules.
Run "pydoc -n <hostname>" to start an HTTP server with the given
hostname (default: localhost) on the local machine.
Run "pydoc -p <port>" to start an HTTP server on the given port on the
local machine. Port number 0 can be used to get an arbitrary unused port.
Run "pydoc -b" to start an HTTP server on an arbitrary unused port and
open a web browser to interactively browse documentation. Combine with
the -n and -p options to control the hostname and port used.
Run "pydoc -w <name>" to write out the HTML documentation for a module
to a file named "<name>.html".
Module docs for core modules are assumed to be in
https://docs.python.org/X.Y/library/
This can be overridden by setting the PYTHONDOCS environment variable
to a different URL or to a local directory containing the Library
Reference Manual pages.
�helpzKa-Ping Yee <ping@lfw.org>z26 February 2001z�Guido van Rossum, for an excellent programming language.
Tommy Burnette, the original creator of manpy.
Paul Prescod, for all his work on onlinehelp.
Richard Chamberlain, for the first implementation of textdoc.
� N)�deque)�Repr)�format_exception_onlyc �J � g } g }t j D ]� }t j j |xs d� }t j j |� }||vs�Jt j j |� s�j| j
|� |j
|� �� | S )zAConvert sys.path into a list of absolute, existing, unique paths.�.)�sys�path�os�abspath�normcase�isdir�append)�dirs�normdirs�dir�normdirs �,/opt/alt/python312/lib64/python3.12/pydoc.py�pathdirsr R sz � �
�D��H��x�x���g�g�o�o�c�j�S�)���'�'�"�"�3�'���(�"�r�w�w�}�}�S�'9��K�K����O�O�G�$� � �K� c �� � t j j | j � }|�y | j j d� d d D ] }t
||� }� t j |� sy |S )Nr ���) r �modules�get�
__module__�__qualname__�split�getattr�inspect�isclass)�func�cls�names r �
_findclassr$ ^ sb � �
�+�+�/�/�$�/�/�
*�C�
�{���!�!�'�'��,�S�b�1���c�4� �� 2��?�?�3����Jr c �~ � t j | � rl| j j }| j }t j
|� r't
t
||d � d� | j u r|}�n�|j }�n�t j | � r)| j }t | � }|�t
||� | u�rCy t j | � r\| j }| j }t j
|� r"|j dz |z | j k( r|}n�|j }n�t | t � r4| j }|j }t |� }|�t
||� | ur�y t j | � st j | � rb| j }| j"