AlkantarClanX12
Current Path : /lib64/python3.8/__pycache__/ |
Current File : //lib64/python3.8/__pycache__/pydoc.cpython-38.pyc |
U ��.e̠ � @ s� d Z dgZdZdZdZddlZddlZddlZddl Zddl ZddlZddlZddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ dd lmZ d d� Zdd � Zdd� Z dd� Z!dd� Z"dd� Z#dd� Z$e�%dej&�Z'dd� Z(dd� Z)dd� Z*dd � Z+dxd!d"�Z,d#d$� Z-d%d&� Z.d'd(� Z/d)d*� Z0i fd+d,�Z1G d-d.� d.e2�Z3d/d0� Z4di fd1d2�Z5G d3d4� d4�Z6G d5d6� d6e�Z7G d7d8� d8e6�Z8G d9d:� d:e�Z9G d;d<� d<e6�Z:G d=d>� d>e:�Z;d?d@� a<dAdB� Z=dCdD� Z>dEdF� Z?dGdH� Z@dIdJ� ZAdKdL� ZBdMdN� ZCdOdP� ZDdydQdR�ZEe:� ZFe;� ZGe8� ZHdzdSdT�ZId{dVdW�ZJd|dXdY�ZKd}dZd[�ZLd~d]d^�ZMG d_d`� d`�ZNeN� ZOG dadb� db�ZPdcdd� ZQdedf� ZRddhdi�ZSd�djdkdl�dmdn�ZTdodp� ZUdqdr� ZVdsdt� ZWdudv� ZXeYdwk�r�eX� dS )�a 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 C s\ g } g }t jD ]H}tj�|pd�}tj�|�}||krtj�|�r| �|� |�|� q| S )zAConvert sys.path into a list of absolute, existing, unique paths.�.)�sys�path�os�abspath�normcase�isdir�append)�dirsZnormdirs�dirZnormdir� r �/usr/lib64/python3.8/pydoc.py�pathdirsP s r c C s. t �| �pt �| �}|r*t�dd|�� �p,dS )z-Get the doc string or comments for an object.z^ * � )�inspect�getdocZgetcomments�re�sub�rstrip)�object�resultr r r r \ s r c C sf | � � �d�}t|�dkr&|d dfS t|�dkrX|d �� sX|d d�|dd� �fS dd�|�fS )z>Split a doc string into a synopsis line (if any) and the rest.� � r r � N)�strip�split�lenr �join)�doc�linesr r r �splitdoca s r$ c C s"