%PDF- %PDF-
Direktori : /lib64/python3.6/__pycache__/ |
Current File : //lib64/python3.6/__pycache__/pydoc.cpython-36.pyc |
3 a��fM� � @ s� d Z dgZdZdZdZddlZddlZddlZddl Zddl ZddlZddlZddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ dd lmZ d d� Zdd � Zdd� Zdd� Z dd� Z!dd� Z"dd� Z#ej$dej%�Z&dd� Z'dd� Z(dd� Z)dd � Z*d!d"� Z+dud#d$�Z,d%d&� Z-d'd(� Z.d)d*� Z/d+d,� Z0i fd-d.�Z1G d/d0� d0e2�Z3d1d2� Z4di fd3d4�Z5G d5d6� d6�Z6G d7d8� d8e�Z7G d9d:� d:e6�Z8G d;d<� d<e�Z9G d=d>� d>e6�Z:G d?d@� d@e:�Z;dAdB� a<dCdD� Z=dEdF� Z>dGdH� Z?dIdJ� Z@dKdL� ZAdMdN� ZBdOdP� ZCdQdR� ZDdvdSdT�ZEe:� ZFe;� ZGe8� ZHdwdUdV�ZIdxdXdY�ZJdydZd[�ZKdzd\d]�ZLd{d_d`�ZMG dadb� db�ZNeN� ZOG dcdd� dd�ZPdedf� ZQdgdh� ZRd|djdk�ZSd}dldm�dndo�ZTdpdq� ZUdrds� ZVeWdtk�r�eV� 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 -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. The -p option can be used with the -b option to explicitly specify the server port. 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 }xRt jD ]H}tjj|p d�}tjj|�}||krtjj|�r| j|� |j|� qW | 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.6/pydoc.py�pathdirsL s r c C s. t j| �pt j| �}|r*tjdd|j� �p,dS )z-Get the doc string or comments for an object.z^ * � )�inspect�getdocZgetcomments�re�sub�rstrip)�object�resultr r r r X s r c C sh | j � jd�}t|�dkr&|d dfS t|�dkrZ|d j� rZ|d dj|dd� �fS ddj|�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 �splitdoc] s r$ c C s"