Hacked By AnonymousFox
3
fd� � @ s� d gZ dZdZdZddlZddlZddlZddlZddl Zddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ ddlmZ d d
� Zdd� Zd
d� Zdd� Zdd� Z dd� Z!dd� Z"ej#dej$�Z%dd� Z&dd� Z'dd� Z(dd� Z)d d!� Z*dtd"d#�Z+d$d%� Z,d&d'� Z-d(d)� Z.d*d+� Z/i fd,d-�Z0G d.d/� d/e1�Z2d0d1� Z3di fd2d3�Z4G d4d5� d5�Z5G d6d7� d7e�Z6G d8d9� d9e5�Z7G d:d;� d;e�Z8G d<d=� d=e5�Z9G d>d?� d?e9�Z:d@dA� a;dBdC� Z<dDdE� Z=dFdG� Z>dHdI� Z?dJdK� Z@dLdM� ZAdNdO� ZBdPdQ� ZCdudRdS�ZDe9� ZEe:� ZFe7� ZGdvdTdU�ZHdwdWdX�ZIdxdYdZ�ZJdyd[d\�ZKdzd^d_�ZLG d`da� da�ZMeM� ZNG dbdc� dc�ZOddde� ZPdfdg� ZQd{didj�ZRd|dkdl�dmdn�ZSdodp� ZTdqdr� ZUeVdsk�r�eU� dS )}�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 )N�.)�sys�path�os�abspath�normcase�isdir�append)�dirsZnormdirs�dirZnormdir� r �*/opt/alt/python36/lib64/python3.6/pydoc.py�pathdirsM s
r c C s. t j| �pt j| �}|r*tjdd|j� �p,dS )Nz^ *
� )�inspect�getdocZgetcomments�re�sub�rstrip)�object�resultr r r r Y s r c C sh | j � jd�}t|�dkr&|d dfS t|�dkrZ|d j� rZ|d dj|dd � �fS ddj|�fS )N�
� r r � )�strip�split�lenr �join)�doc�linesr r r �splitdoc^ s r$ c C s"