AlkantarClanX12

Your IP : 3.17.75.138


Current Path : /opt/alt/python33/lib64/python3.3/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/__pycache__/pydoc.cpython-33.pyo

�
��f�c@sdZdgZdZdZdZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlmZddlmZdd	lmZmZd
d�Zdd
�Zdd�Zdd�Zdd�Zdd�Zdd�Z ej!dej"�Z#dd�Z$dd�Z%dd�Z&dd �Z'e(e(d!d"�Z)d#d$�Z*d%d&�Z+d'd(�Z,id)d*�Z-Gd+d,�d,e.�Z/d-d.�Z0did/d0�Z1Gd1d2�d2�Z2Gd3d4�d4e�Z3Gd5d6�d6e2�Z4Gd7d8�d8e�Z5Gd9d:�d:e2�Z6Gd;d<�d<e6�Z7d=d>�a8d?d@�Z9dAdB�Z:dCdD�Z;dEdF�Z<dGdH�Z=dIdJ�Z>dKdL�Z?ddMdN�Z@e6�ZAe7�ZBe4�ZCddOdP�ZDdQde(dRdS�ZEdQde(dTdU�ZFddVdW�ZGdXe(dYdZ�ZHGd[d\�d\�ZIeI�ZJGd]d^�d^�ZKGd_d`�d`�ZLdadb�ZMdcdd�ZNdedfdg�ZOdhePddidj�ZQdkdl�ZRdmdn�ZSeTdokreS�ndS(pu�Generate Python documentation in HTML or text for interactive use.

In the Python interpreter, do "from pydoc import help" to provide
help.  Calling help(thing) on a Python object documents the object.

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

    http://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.
uhelpuKa-Ping Yee <ping@lfw.org>u26 February 2001u�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.
iN(udeque(uRepr(u
extract_tbuformat_exception_onlycCs�g}g}xvtjD]k}tjj|p.d�}tjj|�}||krtjj|�r|j|�|j|�qqW|S(uAConvert sys.path into a list of absolute, existing, unique paths.u.(usysupathuosuabspathunormcaseuisdiruappend(udirsunormdirsudirunormdir((u*/opt/alt/python33/lib64/python3.3/pydoc.pyupathdirsJs
upathdirscCsCtj|�ptj|�}|r?tjdd|j��pBdS(u-Get the doc string or comments for an object.u^ *
u(uinspectugetdocugetcommentsureusuburstrip(uobjecturesult((u*/opt/alt/python33/lib64/python3.3/pydoc.pyugetdocVsugetdoccCs�|j�jd�}t|�dkr5|ddfSt|�dkry|dj�ry|ddj|dd��fSddj|�fS(u>Split a doc string into a synopsis line (if any) and the rest.u
iiuiN(ustripusplitulenurstripujoin(udoculines((u*/opt/alt/python33/lib64/python3.3/pydoc.pyusplitdoc[s#!usplitdoccCs0|j}|j|kr,|jd|}n|S(u@Get a class name and qualify it with a module name if necessary.u.(u__name__u
__module__(uobjectumodnameuname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	classnameds	u	classnamecCsYtj|�pWtj|�pWtj|�pWtj|�pWtj|�pWtj|�S(u>Check if an object is of a type that probably means it's data.(uinspectuismoduleuisclassu	isroutineuisframeuistracebackuiscode(uobject((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuisdataksuisdatacGsAx:|r<|dj|j|d��}|dd�}qW|S(u/Do a series of global replacements on a string.iiiN(ujoinusplit(utextupairs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyureplaceqs	 ureplacecCsnt|�|krjtd|dd�}td|d|�}|d|�d|t|�|d�S|S(uCOmit part of a string if needed to make it fit in a maximum length.iiiNu...(ulenumax(utextumaxlenupreupost((u*/opt/alt/python33/lib64/python3.3/pydoc.pyucramxs
*ucramu at 0x[0-9a-f]{6,16}(>+)$cCstjd|�S(u>Remove the hexadecimal id from a Python object representation.u\1(u_re_stripidusub(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyustripid�sustripidcCs:tj|�p9tj|�p9tj|�p9tj|�S(N(uinspectu
isfunctionuismethodu	isbuiltinuismethoddescriptor(uobj((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu_is_some_method�su_is_some_methodcCs�i}x*tj|t�D]\}}d||<qWx$|jD]}|jt|��q=Wx'|j�D]}t||�||<qgW|S(Ni(uinspectu
getmembersu_is_some_methodu	__bases__uupdateu
allmethodsukeysugetattr(uclumethodsukeyuvalueubase((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
allmethods�su
allmethodscCsPg}g}x7|D]/}||�r5|j|�q|j|�qW||fS(u�Split sequence s via predicate, and return pair ([true], [false]).

    The return value is a 2-tuple of lists,
        ([x for x in s if predicate(x)],
         [x for x in s if not predicate(x)])
    (uappend(usu	predicateuyesunoux((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu_split_list�s
u_split_listcCs||dkrdS|jd�r2|jd�r2dS|jd�rTt|d�rTdS|dk	rj||kS|jd�SdS(u3Decide whether to show documentation on a variable.u
__author__u__builtins__u
__cached__u__credits__u__date__u__doc__u__file__u__initializing__u
__loader__u
__module__u__name__u__package__u__path__u__qualname__u	__slots__u__version__iu__iu_u_fieldsN>u
__cached__u__name__u__initializing__u
__module__u__version__u__qualname__u__credits__u
__loader__u	__slots__u__package__u__date__u__path__u
__author__u__file__u__builtins__u__doc__T(u
startswithuendswithuhasattruTrueuNone(unameualluobj((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuvisiblename�s	
uvisiblenamecCsag}xTtj|�D]C\}}}}tj|�r@d}n|j||||f�qW|S(uCWrap inspect.classify_class_attrs, with fixup for data descriptors.udata descriptor(uinspectuclassify_class_attrsuisdatadescriptoruappend(uobjecturesultsunameukinduclsuvalue((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuclassify_class_attrs�s"	uclassify_class_attrscCsStjj|�rOx:dD]/}tjjtjj|d|��rdSqWndS(u3Guess whether a path refers to a package directory.u.pyu.pycu.pyou__init__(u.pyu.pycu.pyoTF(uosupathuisdiruisfileujoinuTrueuFalse(upathuext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	ispackage�s

%u	ispackagecCs|j�}x=|dd�dks2|j�rK|j�}|sPqqW|j�}|dd�dkr�|dd�}n|dd�dkr|dd�}|d	d�dkr�|dd
�}nx&|j�s�|j�}|s�Pq�q�W|jd�dj�}nd}|S(Niu#iur"""iu"""u\ii����i����(ureadlineustripusplituNone(ufileulineuresult((u*/opt/alt/python33/lib64/python3.3/pydoc.pyusource_synopsis�s&&usource_synopsisc	s�tj��j}|j�d�\}}|dksB||kr�ytj��}Wntk
rmdSYnXtj	j
dd�}|tj	jdd�7}t�fdd�|D��ra|j
�t�fdd�tj	j
D��rtj	jd��}ntj	jd��}y|jd�}WndSYnX|jpGdj�d}tjd=nt|�}|j
�||f|�<n|S(	u.Get the one-line summary out of a module file.Nc3s|]}�j|�VqdS(N(uendswith(u.0ux(ufilename(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>�susynopsis.<locals>.<genexpr>c3s|]}�j|�VqdS(N(uendswith(u.0ux(ufilename(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>�su__temp__ui(NN(uosustatust_mtimeugetuNoneutokenizeuopenuIOErroru	importlibu	machineryuBYTECODE_SUFFIXESuEXTENSION_SUFFIXESuanyucloseuSourcelessFileLoaderuExtensionFileLoaderuload_moduleu__doc__u
splitlinesusysumodulesusource_synopsis(	ufilenameucacheumtimeu
lastupdateuresultufileubinary_suffixesuloaderumodule((ufilenameu*/opt/alt/python33/lib64/python3.3/pydoc.pyusynopsis�s6
	
		

usynopsiscBs2|EeZdZdZdd�Zdd�ZdS(uErrorDuringImportuEErrors that occurred while trying to import something to document it.cCs%||_|\|_|_|_dS(N(ufilenameuexcuvalueutb(uselfufilenameuexc_info((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__s	uErrorDuringImport.__init__cCs#|jj}d|j||jfS(Nuproblem in %s - %s: %s(uexcu__name__ufilenameuvalue(uselfuexc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__str__suErrorDuringImport.__str__N(u__name__u
__module__u__qualname__u__doc__u__init__u__str__(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuErrorDuringImportsuErrorDuringImportcCs�tj�}t|d���}|jt|��|krEtj}n	tj}|jd�tj	j
|�}tj	j|�\}}y%tj||||d|f�}Wnt
|tj���YnXWdQX|S(u<Import a Python source file or compiled file given its path.urbiurN(uimpu	get_magicuopenureadulenuPY_COMPILEDu	PY_SOURCEuseekuosupathubasenameusplitextuload_moduleuErrorDuringImportusysuexc_info(upathumagicufileukindufilenameunameuextumodule((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
importfiles	
% u
importfilecs�y�|r|�tjkr|�tjkr|�fdd�tjD�}x3�g|D]!}tj|||<tj|=qQWq|nt��}Wn�tj�\}}}}	�tjkr�ttj�j|	��nU|tkr�t|j|	��n4|t	kr|j
�krdSt�tj���YnXxM�jd�dd�D]2}
yt
||
�}WqGtk
rxdSYqGXqGW|S(u�Import a module; handle errors; return None if the module isn't found.

    If the module *is* found but an exception occurs, it's wrapped in an
    ErrorDuringImport exception and reraised.  Unlike __import__, if a
    package path is specified, the module at the end of the path is returned,
    not the package at the beginning.  If the optional 'forceload' argument
    is 1, we reload the module from disk (unless it's a dynamic extension).cs)g|]}|j�d�r|�qS(u.(u
startswith(u.0um(upath(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>1s	usafeimport.<locals>.<listcomp>u.iN(usysumodulesubuiltin_module_namesu
__import__uexc_infouErrorDuringImportu__file__uSyntaxErrorufilenameuImportErrorunameuNoneusplitugetattruAttributeError(upathu	forceloaducacheusubsukeyumoduleuexcuvalueutbuinfoupart((upathu*/opt/alt/python33/lib64/python3.3/pydoc.pyu
safeimports. 

u
safeimportcBs~|EeZdZejjddejdd��Zddd�Z
ddd�ZeZZ
ZZZZd	d
�ZdS(uDocu
PYTHONDOCSu$http://docs.python.org/%d.%d/libraryNicGs�||f|}tj|�r,|j|�Stj|�rH|j|�SyXtj|�rg|j|�Stj|�r�|j|�Stj|�r�|j	|�SWnt
k
r�YnXt|t�r�|j
|�S|j|�S(u%Generate documentation for an object.(uinspectuisgetsetdescriptorudocdatauismemberdescriptoruismoduleu	docmoduleuisclassudocclassu	isroutineu
docroutineuAttributeErroru
isinstanceupropertyudocpropertyudocother(uselfuobjectunameuargs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocumentSs"





uDoc.documentcGs9d|odt|�t|�jf}t|��dS(u+Raise an exception for unimplemented types.u.don't know how to document object%s of type %su N(ureprutypeu__name__u	TypeError(uselfuobjectunameuargsumessage((u*/opt/alt/python33/lib64/python3.3/pydoc.pyufailes&uDoc.failcCs*ytj|�}Wntk
r-d}YnXtjjd|j�}tjjt	j
ddt	jdd��}t|t
t��r |jdks�|j|�r |jtjj|d��r |jdkr |jd�rd|jd�|jf}q&tjj||jd�}nd}|S(u*Return the location of module docs or Noneu
(built-in)u
PYTHONDOCSulibupython%d.%dNiuerrnou
exceptionsugcuimpumarshaluposixusignalusysu_threadu	zipimportu
site-packagesu	xml.etreeutest.pydoc_moduhttp://u%s/%su/u.html(
uerrnou
exceptionsugcuimpumarshaluposixusignalusysu_threadu	zipimport(u	xml.etreeutest.pydoc_mod(uinspectu
getabsfileu	TypeErroruosuenvironugetu
PYTHONDOCSupathujoinusysubase_exec_prefixuversion_infou
isinstanceutypeu__name__u
startswithurstripuNone(uselfuobjectufileudoclocubasedir((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	getdoclocms&
	u
Doc.getdocloc(u__name__u
__module__u__qualname__uosuenvironugetusysuversion_infou
PYTHONDOCSuNoneudocumentufailu	docmoduleudocclassu
docroutineudocotherudocpropertyudocdatau	getdocloc(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuDocMsuDoccBsn|EeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�ZeZ	dd
�Z
eZdS(uHTMLRepruBClass for safely making an HTML representation of a Python object.cCs:tj|�d|_|_d|_d|_|_dS(Nii
id(uRepru__init__umaxlistumaxtupleumaxdictu	maxstringumaxother(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�s
	uHTMLRepr.__init__cCst|dddddd�S(Nu&u&amp;u<u&lt;u>u&gt;(ureplace(uselfutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuescape�suHTMLRepr.escapecCstj||�S(N(uReprurepr(uselfuobject((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurepr�su
HTMLRepr.reprcCs�tt|�d�r_ddjt|�jj��}t||�r_t||�||�Sn|jttt	|��|j
��S(Nu__name__urepr_u_(uhasattrutypeujoinu__name__usplitugetattruescapeucramustripidureprumaxother(uselfuxulevelu
methodname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurepr1�s
"uHTMLRepr.repr1cCst||j�}t|�}d|krcdt|dd�krcd|d|j|�|dStjdd|j|��S(Nu\u\\uuriu-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)u<font color="#c040c0">\1</font>(ucramu	maxstringureprureplaceuescapeureusub(uselfuxulevelutestutestrepr((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurepr_string�s$!	uHTMLRepr.repr_stringcCsOy)|jttt|��|j��SWn|jd|jj�SYnXdS(Nu
<%s instance>(uescapeucramustripidurepru	maxstringu	__class__u__name__(uselfuxulevel((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
repr_instance�s)uHTMLRepr.repr_instanceN(u__name__u
__module__u__qualname__u__doc__u__init__uescapeureprurepr1urepr_stringurepr_stru
repr_instanceurepr_unicode(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuHTMLRepr�suHTMLReprcBs�|EeZdZdZe�ZejZejZdd�Zddd�Z	ddd4dd	d
�Zdd�Zd
d�Z
ddd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zd4iiidd�Zd4d d!�Zd4d4d"d#�Zd4d4iid$d%�Zd&d'�Zd4d4iiid4d(d)�Zd*d+�Zd4d4d4d,d-�Zd4d4d.d/�Zd4d4d4d0d1�Zd4d2d3�Zd4S(5uHTMLDocu'Formatter class for HTML documentation.cCsd||fS(uFormat an HTML page.u�<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: %s</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">
%s
</body></html>((uselfutitleucontents((u*/opt/alt/python33/lib64/python3.3/pydoc.pyupage�suHTMLDoc.pageucCsd|||||pdfS(uFormat a page heading.u'
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="%s">
<td valign=bottom>&nbsp;<br>
<font color="%s" face="helvetica, arial">&nbsp;<br>%s</font></td
><td align=right valign=bottom
><font color="%s" face="helvetica, arial">%s</font></td></tr></table>
    u&nbsp;((uselfutitleufgcolubgcoluextras((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuheading�s	uHTMLDoc.headingiu&nbsp;c	
Csz|dkr!dd|d}nd|||f}	|rW|	d||||f}	n|	d|||f}	|	d|S(	u Format a section with a heading.u<tt>u&nbsp;u</tt>u�<p>
<table width="100%%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="%s">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="%s" face="helvetica, arial">%s</font></td></tr>
    uR
<tr bgcolor="%s"><td rowspan=2>%s</td>
<td colspan=2>%s</td></tr>
<tr><td>%s</td>u(
<tr><td bgcolor="%s">%s</td><td>%s</td>u'
<td width="100%%">%s</td></tr></table>N(uNone(
uselfutitleufgcolubgcolucontentsuwidthupreludeu
marginaliaugapuresult((u*/opt/alt/python33/lib64/python3.3/pydoc.pyusection�suHTMLDoc.sectioncGsd|}|j||�S(u$Format a section with a big heading.u<big><strong>%s</strong></big>(usection(uselfutitleuargs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
bigsection�s
uHTMLDoc.bigsectionc
Cs7|j|j��}t|dddddddd�	S(u!Format literal preformatted text.u

u
 
u u&nbsp;u
u<br>
(uescapeu
expandtabsureplace(uselfutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	preformat�suHTMLDoc.preformaticCs�d}t|�|d|}x�t|�D]u}|dd|}xPt|||||�D]3}|t|�kr_||||�d}q_q_W|d}q+Wd|S(u0Format a list of items into a multi-column list.uiu<td width="%d%%" valign=top>idu<br>
u</td>u7<table width="100%%" summary="list"><tr>%s</tr></table>(ulenurange(uselfulistuformatucolsuresulturowsucolui((u*/opt/alt/python33/lib64/python3.3/pydoc.pyumulticolumn�s"uHTMLDoc.multicolumncCsd|S(Nu<font color="#909090">%s</font>((uselfutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyugrey�suHTMLDoc.greycGs3x,|D]$}||krd|||fSqW|S(u:Make a link for an identifier, given name-to-URL mappings.u<a href="%s">%s</a>((uselfunameudictsudict((u*/opt/alt/python33/lib64/python3.3/pydoc.pyunamelinks
uHTMLDoc.namelinkcCsm|jtjj|j�}}t||�r`t||�|kr`d|j|t||�fSt||�S(uMake a link for a class.u<a href="%s.html#%s">%s</a>(u__name__usysumodulesugetu
__module__uhasattrugetattru	classname(uselfuobjectumodnameunameumodule((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	classlinks
$uHTMLDoc.classlinkcCsd|j|jfS(uMake a link for a module.u<a href="%s.html">%s</a>(u__name__(uselfuobject((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
modulelinksuHTMLDoc.modulelinkcCso|\}}}}|r%|j|�S|r>d||f}n
d|}|r[d|}n|}d||fS(u;Make a link for a module or package to display in an index.u
%s.%s.htmlu%s.htmlu"<strong>%s</strong>&nbsp;(package)u<a href="%s">%s</a>(ugrey(uselfu
modpkginfounameupathu	ispackageushadoweduurlutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
modpkglinks


uHTMLDoc.modpkglinkcCsd||fS(uMake a link to source file.u<a href="file:%s">%s</a>((uselfuurlupath((u*/opt/alt/python33/lib64/python3.3/pydoc.pyufilelink#suHTMLDoc.filelinkcCs�|p|j}g}d}tjd�}x�|j||�}	|	sIPn|	j�\}
}|j||||
���|	j�\}}
}}}}|
r�||�jdd�}|jd||f�n�|rdt|�}|jd|||�f�n�|r:dt|�}|jd|||�f�no|||d�d	krv|j|j	||||��n3|r�|jd
|�n|j|j	||��|}q-|j|||d���dj
|�S(
u�Mark up some plain text, given a context of symbols to look for.
        Each context dictionary maps object names to anchor names.iuD\b((http|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))u"u&quot;u<a href="%s">%s</a>u'http://www.rfc-editor.org/rfc/rfc%d.txtu(http://www.python.org/dev/peps/pep-%04d/iu(uself.<strong>%s</strong>Nu(uescapeureucompileusearchuspanuappendugroupsureplaceuintunamelinkujoin(uselfutextuescapeufuncsuclassesumethodsuresultsuhereupatternumatchustartuendualluschemeurfcupepuselfdotunameuurl((u*/opt/alt/python33/lib64/python3.3/pydoc.pyumarkup's8  "	uHTMLDoc.markupc
Csd}x�|D]�}t|�tf�kr�|\}}|d}||j||�}|r�||fkr�g}x'|D]}	|j|j|	|��qyW|ddj|�d}n|d}q
t|�tg�kr
|d|j|||�}q
q
Wd|S(	uAProduce HTML for a class tree as given by inspect.getclasstree().uu"<dt><font face="helvetica, arial">u(u, u)u

</font></dt>u
<dd>
%s</dd>
u
<dl>
%s</dl>
(utypeu	classlinkuappendujoinu
formattree(
uselfutreeumodnameuparenturesultuentryucubasesuparentsubase((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
formattreeMs 



uHTMLDoc.formattreec$s�|j}y
|j}Wntk
r0d}YnX|jd�}g}xPtt|�d�D]8}|jddj|d|d��||f�q]Wdj||d/d��}	d|	}
yXt	j
|�}|}tjdkrddl
}
|
j|�}n�j||�}Wntk
r2d}YnXg}t|d	�r�t|j�}|dd
�d0kr�|d1d�dkr�|d
d2�j�}n|jd
�j|��nt|d�r�|j�jt|j���n|r
|
ddj|�}
n�j|�}|dk	r5dt�}nd}�j|
ddd||�}t	j|t	j�}gi}}x�t	j|t	j�D]t\}}|dk	s�t	j|�p�||kr�t|||�r|j||f�d|||<||<qq�q�Wx�|D]�\}}x�|jD]�}|j|j }}tj!j"|�}||kr(|r(t||�r(t#||�|kr�||kr�|d|||<||<q�q�q(q(WqWgi}}x�t	j|t	j$�D]�\}}|dk	st	j%|�st	j|�|kr�t|||�rx|j||f�d|||<t	j&|�ru||||<quqxq�q�Wg}xHt	j|t'�D]4\}}t|||�r�|j||f�q�q�W�j(t)|��j*||�}|o�d|}|d|}t|d�r�g}x<t+j,|j-�D](\} }}!|j|||!df�q4W|j.��j/|�j0�}"|�j1ddd|"�}nC|r��j/|�fdd��}"|�j1d dd|"�}n|r|d!d"�|D�}#�j2t	j3|#d�|�g}"x6|D].\}}|"j�j4|||||��q"W|�j1d#dd$d%j|"��}n|r�g}"x6|D].\}}|"j�j4|||||��q�W|�j1d&dd'd%j|"��}n|rMg}"x-|D]%\}}|"j�j4||��q�W|�j1d(dd)d*j|"��}nt|d+�r��j(t|j5��j*�}"|�j1d,dd|"�}nt|d-�r��j(t|j6��j*�}"|�j1d.dd|"�}n|S(3u/Produce HTML documentation for a module object.u.iu5<a href="%s.html"><font color="#ffffff">%s</font></a>Nu)<big><big><strong>%s</strong></big></big>uwin32iu
(built-in)u__version__iu$u
Revision: u
version %su__date__u (%s)u, u-<br><a href="%(docloc)s">Module Reference</a>uu#ffffffu#7799eeu<a href=".">index</a><br>u#u.html#u#-u<tt>%s</tt>u
<p>%s</p>
u__path__uPackage Contentsu#aa55cccs�j|d�S(Ni(u
modulelink(ut(uself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�su#HTMLDoc.docmodule.<locals>.<lambda>uModulescSsg|]\}}|�qS(((u.0ukeyuvalue((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>�s	u%HTMLDoc.docmodule.<locals>.<listcomp>uClassesu#ee77aau u	Functionsu#eeaa77uDatau#55aa55u<br>
u
__author__uAuthoru__credits__uCreditsi����u$Revision: i����i����(7u__name__u__all__uAttributeErroruNoneuspliturangeulenuappendujoinuinspectu
getabsfileusysuplatformu
nturl2pathupathname2urlufilelinku	TypeErroruhasattrustru__version__ustripuescapeu__date__u	getdocloculocalsuheadingu
getmembersuismoduleuisclassu	getmoduleuvisiblenameu	__bases__u
__module__umodulesugetugetattru	isroutineu	isbuiltinu
isfunctionuisdataumarkupugetdocu	preformatupkgutiluiter_modulesu__path__usortumulticolumnu
modpkglinku
bigsectionu
formattreeugetclasstreeudocumentu
__author__u__credits__($uselfuobjectunameumoduignoreduallupartsulinksuiu
linkednameuheadupathuurlu
nturl2pathufilelinkuinfouversionudoclocuresultumodulesuclassesucdictukeyuvalueubaseumodnameumoduleufuncsufdictudataudocumodpkgsuimporteruispkgucontentsu	classlist((uselfu*/opt/alt/python33/lib64/python3.3/pydoc.pyu	docmodule`s�	

-

,"	
" !+
"$!"
		!&	&				uHTMLDoc.docmodulecs�j}|p|}�j}g}	|	j�G�fdd�d�}
|
��ttj���}t|�dkr��j��d�x+|D]#}�d�j|�j	��q�W�d�n��������fdd�}
����fd	d
�}��������fdd�}�fd
d�t
��D�}i�x|D]w\}}}}d|d|�|<}yt�|�}Wntk
r�YnXy|�|<WqZt
k
r�YqZXqZWxI|r |r�|j��n|dd�t|�fdd��\}}�tjkr=|}q�n.��krRd}nd�j��j	�}|d7}|jddd��|
d||dd��}|
d||dd��}|
d||dd��}|d||d d��}|d!||d"d��}|}q�Wd#j|	�}	||krOd$||f}nd%|||f}|r�g}x*|D]"}|j�j|�j	��quW|d&d'j|�}n�jt���j����}|o�d(|}�j|d)d*|	d+|�S(,u.Produce HTML documentation for a class object.cs2|EeZdZdd�Z�fdd�ZdS(u(HTMLDoc.docclass.<locals>.HorizontalRulecSs
d|_dS(Ni(uneedone(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�su1HTMLDoc.docclass.<locals>.HorizontalRule.__init__cs#|jr�d�nd|_dS(Nu<hr>
i(uneedone(uself(upush(u*/opt/alt/python33/lib64/python3.3/pydoc.pyumaybe�s	
u.HTMLDoc.docclass.<locals>.HorizontalRule.maybeN(u__name__u
__module__u__qualname__u__init__umaybe(u
__locals__(upush(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuHorizontalRule�suHorizontalRuleiu&<dl><dt>Method resolution order:</dt>
u<dd>%s</dd>
u</dl>
cs�t||�\}}|r��j��|�x�|D]�\}}}}yt�|�}Wn+tk
r���j||���Yn&X��j||��������d�q6Wn|S(Nu
(u_split_listumaybeugetattru	Exceptionu_docdescriptorudocument(umsguattrsu	predicateuokunameukinduhomeclsuvalue(uclassesufuncsuhrumdictumoduobjectupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuspill�s


uHTMLDoc.docclass.<locals>.spillcslt||�\}}|rh�j��|�x6|D]+\}}}}��j||���q6Wn|S(N(u_split_listumaybeu_docdescriptor(umsguattrsu	predicateuokunameukinduhomeclsuvalue(uhrumodupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuspilldescriptorss

 u*HTMLDoc.docclass.<locals>.spilldescriptorsc
st||�\}}|r�j��|�x�|D]�\}}}}�jt�|�|��}t|�s�tj|�r�t|dd�}	nd}	|	dkr��d|�nB�jt	|��j
����}	d|	}	�d||	f��d�q6Wn|S(Nu__doc__u<dl><dt>%s</dl>
u<dd><tt>%s</tt>u<dl><dt>%s%s</dl>
u
(u_split_listumaybeudocotherugetattrucallableuinspectuisdatadescriptoruNoneumarkupugetdocu	preformat(
umsguattrsu	predicateuokunameukinduhomeclsuvalueubaseudoc(uclassesufuncsuhrumdictumoduobjectupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	spilldatas"


u#HTMLDoc.docclass.<locals>.spilldatacs@g|]6\}}}}t|d��r||||f�qS(uobj(uvisiblename(u.0unameukinduclsuvalue(uobject(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>*s	u$HTMLDoc.docclass.<locals>.<listcomp>u#u-ics|d�kS(Ni((ut(u	thisclass(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>Csu"HTMLDoc.docclass.<locals>.<lambda>udefined hereuinherited from %su:<br>
ukeycSs|dS(Ni((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>Psu
Methods %scSs|ddkS(Niumethod((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>TsuClass methods %scSs|ddkS(Niuclass method((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>VsuStatic methods %scSs|ddkS(Niu
static method((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>XsuData descriptors %scSs|ddkS(Niudata descriptor((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>ZsuData and other attributes %scSs|ddkS(Niudata((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>\suu*<a name="%s">class <strong>%s</strong></a>u/<strong>%s</strong> = <a name="%s">class %s</a>u(%s)u, u<tt>%s<br>&nbsp;</tt>u#000000u#ffc8d8i(u__name__u	__bases__uappendudequeuinspectugetmroulenumaybeu	classlinku
__module__uclassify_class_attrsugetattru	Exceptionu	TypeErrorupopleftu_split_listubuiltinsuobjectusortujoinumarkupugetdocu	preformatusection(uselfuobjectunameumodufuncsuclassesuignoredurealnameubasesucontentsuHorizontalRuleumroubaseuspilluspilldescriptorsu	spilldatauattrsukeyukinduhomeclsuvalueuanchoru	inheritedutagutitleuparentsudoc((	uclassesufuncsuhrumdictumoduobjectupushuselfu	thisclassu*/opt/alt/python33/lib64/python3.3/pydoc.pyudocclass�s�				



'	'

		!	








 $uHTMLDoc.docclasscCs|jd|j|��S(u)Format an argument default value as text.u=(ugreyurepr(uselfuobject((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuformatvaluersuHTMLDoc.formatvaluecCsn|j}|p|}|r$|jp'dd|}	d}
d}tj|�r�|jj}|r�||k	r�d|j||�}
q�nD|jdk	r�d|j|jj|�}
nd|j||�}
|j}n||kr�d|	|f}
ne|rB||jkrB|j||krBd|jd||f}d	}n|}d
|	||f}
tj	|�r�tj
|�\}}}}}}}tj|||||||d|jdtj
|��}|d
kr�d|}
|d	d�}q�nd}|
||
o|jd|
�}|r(d|S|jt|�|j|||�}|oYd|}d||fSdS(u;Produce HTML documentation for a function or method object.uu-iu from u method of %s instanceu unbound %s methodu$<a name="%s"><strong>%s</strong></a>u<a href="#%s">%s</a>iu)<a name="%s"><strong>%s</strong></a> = %suformatvalueuformatannotationu<lambda>u$<strong>%s</strong> <em>lambda</em> u(...)u'<font face="helvetica, arial">%s</font>u<dl><dt>%s</dt></dl>
u<dd><tt>%s</tt></dd>u<dl><dt>%s</dt>%s</dl>
Ni����(u__name__uinspectuismethodu__self__u	__class__u	classlinkuNoneu__func__u__dict__u
isfunctionugetfullargspecu
formatargspecuformatvalueuformatannotationrelativetougreyumarkupugetdocu	preformat(uselfuobjectunameumodufuncsuclassesumethodsuclurealnameuanchorunoteuskipdocsuimclassutitleureallinkuargsuvarargsu
kwonlyargsu
kwdefaultsuvarkwudefaultsuannuargspecudecludoc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
docroutinevsV			$	
uHTMLDoc.docroutinecCsxg}|j}|r&|d|�n|jdk	ra|jt|�|j�}|d|�n|d�dj|�S(Nu!<dl><dt><strong>%s</strong></dt>
u<dd><tt>%s</tt></dd>
u</dl>
u(uappendu__doc__uNoneumarkupugetdocu	preformatujoin(uselfunameuvalueumoduresultsupushudoc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu_docdescriptor�s	
uHTMLDoc._docdescriptorcCs|j|||�S(u*Produce html documentation for a property.(u_docdescriptor(uselfuobjectunameumoducl((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocproperty�suHTMLDoc.docpropertycGs'|rd|pd}||j|�S(u-Produce HTML documentation for a data object.u<strong>%s</strong> = u(urepr(uselfuobjectunameumoduignoredulhs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocother�suHTMLDoc.docothercCs|j|||�S(u1Produce html documentation for a data descriptor.(u_docdescriptor(uselfuobjectunameumoducl((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocdata�suHTMLDoc.docdatacCs�g}|dkri}nxktj|g�D]W\}}}tdd�|D��r\q.n|j|d|||kf�d||<q.W|j�|j||j�}|j|dd|�S(u2Generate an HTML index for a directory of modules.css1|]'}dt|�ko&dknVqdS(i�i��N(uord(u.0uch((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>�su HTMLDoc.index.<locals>.<genexpr>uiu#ffffffu#ee77aaN(	uNoneupkgutiluiter_modulesuanyuappendusortumulticolumnu
modpkglinku
bigsection(uselfudirushadowedumodpkgsuimporterunameuispkgucontents((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuindex�s	"
u
HTMLDoc.indexN( u__name__u
__module__u__qualname__u__doc__uHTMLRepru_repr_instanceurepruescapeupageuheadinguNoneusectionu
bigsectionu	preformatumulticolumnugreyunamelinku	classlinku
modulelinku
modpkglinkufilelinkumarkupu
formattreeu	docmoduleudocclassuformatvalueu
docroutineu_docdescriptorudocpropertyudocotherudocdatauindex(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuHTMLDoc�s:			
&|�;
uHTMLDoccBsP|EeZdZdZdd�Zdd�Zdd�ZeZdd	�Zd
S(uTextRepruAClass for safely making a text representation of a Python object.cCs:tj|�d|_|_d|_d|_|_dS(Nii
id(uRepru__init__umaxlistumaxtupleumaxdictu	maxstringumaxother(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�s
	uTextRepr.__init__cCs{tt|�d�r_ddjt|�jj��}t||�r_t||�||�Snttt|��|j	�S(Nu__name__urepr_u_(
uhasattrutypeujoinu__name__usplitugetattrucramustripidureprumaxother(uselfuxulevelu
methodname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurepr1�s
"uTextRepr.repr1cCs^t||j�}t|�}d|krZdt|dd�krZd|d||dS|S(Nu\u\\uuri(ucramu	maxstringureprureplace(uselfuxulevelutestutestrepr((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurepr_string�s
$uTextRepr.repr_stringc
Cs=y ttt|��|j�SWnd|jjSYnXdS(Nu
<%s instance>(ucramustripidurepru	maxstringu	__class__u__name__(uselfuxulevel((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
repr_instance�s uTextRepr.repr_instanceN(	u__name__u
__module__u__qualname__u__doc__u__init__urepr1urepr_stringurepr_stru
repr_instance(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuTextRepr�s	uTextReprcBs�|EeZdZdZe�ZejZdd�Zddd�Zdd�Z	dd	d
d�Zdddd
�Zdddd�Z
dd�Zddddd�Zdd�Zddddd�Zddddd�Zddddddd�ZdS(uTextDocu'Formatter class for text documentation.cCsdjdd�|D��S(u(Format a string in bold by overstriking.ucss|]}|d|VqdS(uN((u.0uch((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>suTextDoc.bold.<locals>.<genexpr>(ujoin(uselfutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuboldsuTextDoc.boldu    csV|s
dS�fdd�|jd�D�}|rI|dj�|d<ndj|�S(u6Indent text by prepending a given prefix to each line.ucsg|]}�|�qS(((u.0uline(uprefix(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>s	u"TextDoc.indent.<locals>.<listcomp>u
ii����i����(uspliturstripujoin(uselfutextuprefixulines((uprefixu*/opt/alt/python33/lib64/python3.3/pydoc.pyuindent	s"uTextDoc.indentcCs.|j|�j�}|j|�d|dS(u&Format a section with a given heading.u
u

(uindenturstripubold(uselfutitleucontentsuclean_contents((u*/opt/alt/python33/lib64/python3.3/pydoc.pyusectionsuTextDoc.sectionuc
s�d}x�|D]�}t|�tf�kr�|\}}||t|��}|r�||fkr��fdd�|D�}	|ddj|	�}n|d}q
t|�tg�kr
||j|�||d�}q
q
W|S(uBRender in text a class tree as returned by inspect.getclasstree().uc3s|]}t|��VqdS(N(u	classname(u.0uc(umodname(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>su%TextDoc.formattree.<locals>.<genexpr>u(%s)u, u
u    (utypeu	classnameujoinu
formattree(
uselfutreeumodnameuparentuprefixuresultuentryucubasesuparents((umodnameu*/opt/alt/python33/lib64/python3.3/pydoc.pyu
formattrees

	uTextDoc.formattreecCs�|j}tt|��\}}|jd||o:d|�}t|dd�}|j|�}|dk	r�||jd|d�}n|r�||jd|�}ng}	xutj|tj	�D]^\}
}|dk	s�tj
|�p�||kr�t|
||�r$|	j|
|f�q$q�q�Wg}x~tj|tj
�D]g\}
}|dk	s�tj|�s�tj
|�|krDt|
||�r�|j|
|f�q�qDqDWg}
xHtj|t�D]4\}
}t|
||�r�|
j|
|f�q�q�Wg}t�}t|d�r�xWtj|j�D]C\}}}|j|�|rg|j|d�q1|j|�q1W|j�||jd	d
j|��}ng}xUtj|tj�D]>\}
}|jj|d�r�|
|kr�|j|
�q�q�W|r4|j�||jdd
j|��}n|	r�d
d�|	D�}|jtj|d�|�g}x0|	D](\}
}|j|j||
|��quW||jdd
j|��}n|r$g}x0|D](\}
}|j|j||
|��q�W||jdd
j|��}n|
r�g}x6|
D].\}
}|j|j||
|dd��q7W||jdd
j|��}nt|d�rt|j�}|dd�d#kr�|d$d�dkr�|dd%�j �}n||jd|�}nt|d�r8||jdt|j!��}nt|d�ri||jdt|j"��}nt|d�r�||jd t|j#��}nytj$|�}Wnt%k
r�d!}YnX||jd"|�}|S(&u5Produce text documentation for a given module object.uNAMEu - u__all__uMODULE REFERENCEu.

The following documentation is automatically generated from the Python
source files.  It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations.  When in doubt, consult the module reference at the
location listed above.
uDESCRIPTIONu__path__u
 (package)uPACKAGE CONTENTSu
u.u
SUBMODULEScSsg|]\}}|�qS(((u.0ukeyuvalue((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>gs	u%TextDoc.docmodule.<locals>.<listcomp>iuCLASSESu	FUNCTIONSumaxleniFuDATAu__version__Niu$u
Revision: uVERSIONu__date__uDATEu
__author__uAUTHORu__credits__uCREDITSu
(built-in)uFILEu$Revision: i����i����(&u__name__usplitdocugetdocusectionugetattruNoneu	getdoclocuinspectu
getmembersuisclassu	getmoduleuvisiblenameuappendu	isroutineu	isbuiltinuisdatausetuhasattrupkgutiluiter_modulesu__path__uaddusortujoinuismoduleu
startswithu
formattreeugetclasstreeudocumentudocotherustru__version__ustripu__date__u
__author__u__credits__u
getabsfileu	TypeError(uselfuobjectunameumodusynopudescuresultualludoclocuclassesukeyuvalueufuncsudataumodpkgsu
modpkgs_namesuimporterumodnameuispkgu
submodulesu	classlistucontentsuversionufile((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	docmodule's�	 ""$	"

	""
	 " "&","""
uTextDoc.docmodulecs3�j}|p|}�j}�jdd�}||krRd�j|�}n�j|�d|}|r�t||�}	|ddj|	�}nt��}
|
r�|
dgp�g}|j�tt	j
���}t|�dkr)�d	�x"|D]}
�d
||
��q�W�d�nG�fdd
�d
�}|�������fdd�}����fdd�}�����fdd�}�fdd�t��D�}x0|r�|r�|j
��n|dd�t|�fdd��\}}�tjkr)|}q�n+��kr>d}ndt��j�}|j�|d||dd��}|d||dd��}|d||d d��}|d!||d"d��}|d#||d$d��}|}q�Wdj|�}|s|dS|d�j|j�d%�dS(&u4Produce text documentation for a given class object.cSs
t||�S(N(u	classname(ucum((u*/opt/alt/python33/lib64/python3.3/pydoc.pyumakename�su"TextDoc.docclass.<locals>.makenameuclass u	 = class u(%s)u, u
iuMethod resolution order:u    ucs2|EeZdZdd�Z�fdd�ZdS(u(TextDoc.docclass.<locals>.HorizontalRulecSs
d|_dS(Ni(uneedone(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�su1TextDoc.docclass.<locals>.HorizontalRule.__init__cs'|jr�dd�nd|_dS(Nu-iFi(uneedone(uself(upush(u*/opt/alt/python33/lib64/python3.3/pydoc.pyumaybe�s	u.TextDoc.docclass.<locals>.HorizontalRule.maybeN(u__name__u
__module__u__qualname__u__init__umaybe(u
__locals__(upush(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuHorizontalRule�suHorizontalRulecs�t||�\}}|r��j��|�xz|D]o\}}}}yt�|�}Wn+tk
r���j||���Yq6X��j||����q6Wn|S(N(u_split_listumaybeugetattru	Exceptionu_docdescriptorudocument(umsguattrsu	predicateuokunameukinduhomeclsuvalue(uhrumoduobjectupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuspill�s


uTextDoc.docclass.<locals>.spillcslt||�\}}|rh�j��|�x6|D]+\}}}}��j||���q6Wn|S(N(u_split_listumaybeu_docdescriptor(umsguattrsu	predicateuokunameukinduhomeclsuvalue(uhrumodupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuspilldescriptors�s

 u*TextDoc.docclass.<locals>.spilldescriptorsc	s�t||�\}}|r��j��|�x|D]t\}}}}t|�sctj|�rrt|�}nd}��jt�|�|�ddd|�d�q6Wn|S(NumaxleniFudocu
(	u_split_listumaybeucallableuinspectuisdatadescriptorugetdocuNoneudocotherugetattr(	umsguattrsu	predicateuokunameukinduhomeclsuvalueudoc(uhrumoduobjectupushuself(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	spilldata�s

$u#TextDoc.docclass.<locals>.spilldatacs@g|]6\}}}}t|d��r||||f�qS(uobj(uvisiblename(u.0unameukinduclsuvalue(uobject(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>�s	u$TextDoc.docclass.<locals>.<listcomp>ics|d�kS(Ni((ut(u	thisclass(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�su"TextDoc.docclass.<locals>.<lambda>udefined hereuinherited from %suMethods %s:
cSs|ddkS(Niumethod((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suClass methods %s:
cSs|ddkS(Niuclass method((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suStatic methods %s:
cSs|ddkS(Niu
static method((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suData descriptors %s:
cSs|ddkS(Niudata descriptor((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suData and other attributes %s:
cSs|ddkS(Niudata((ut((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�su |  (u__name__u	__bases__u
__module__uboldumapujoinugetdocuappendudequeuinspectugetmroulenuclassify_class_attrsupopleftu_split_listubuiltinsuobjectu	classnameusortuindenturstrip(uselfuobjectunameumoduignoredurealnameubasesumakenameutitleuparentsudocucontentsumroubaseuHorizontalRuleuspilluspilldescriptorsu	spilldatauattrsu	inheritedutag((uhrumoduobjectupushuselfu	thisclassu*/opt/alt/python33/lib64/python3.3/pydoc.pyudocclass�sl			


			!		







uTextDoc.docclasscCsd|j|�S(u)Format an argument default value as text.u=(urepr(uselfuobject((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuformatvaluesuTextDoc.formatvaluecCs|j}|p|}d}d}tj|�r�|jj}|rg||k	r�dt||�}q�n>|jdk	r�dt|jj|�}ndt||�}|j}n||kr�|j|�}	nH|r||j	kr|j	||krd}n|j|�d|}	tj
|�r�tj|�\}
}}}
}}}tj|
|||
|||d|j
d	tj|��}|d
kr�|j|�d}	|dd�}q�nd}|	||}|r�|d
St|�p�d}|d
|o|j|�j�d
SdS(u;Produce text documentation for a function or method object.uiu from u method of %s instanceu unbound %s methodiu = uformatvalueuformatannotationu<lambda>u lambda u(...)u
Ni����(u__name__uinspectuismethodu__self__u	__class__u	classnameuNoneu__func__uboldu__dict__u
isfunctionugetfullargspecu
formatargspecuformatvalueuformatannotationrelativetougetdocuindenturstrip(uselfuobjectunameumoduclurealnameunoteuskipdocsuimclassutitleuargsuvarargsuvarkwudefaultsu
kwonlyargsu
kwdefaultsuannuargspecudecludoc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
docroutine	sF		$	uTextDoc.docroutinecCszg}|j}|r5||j|��|d�nt|�pDd}|rm||j|��|d�ndj|�S(Nu
u(uappenduboldugetdocuindentujoin(uselfunameuvalueumoduresultsupushudoc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu_docdescriptor:s	

uTextDoc._docdescriptorcCs|j|||�S(u*Produce text documentation for a property.(u_docdescriptor(uselfuobjectunameumoducl((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocpropertyGsuTextDoc.docpropertycCs|j|||�S(u1Produce text documentation for a data descriptor.(u_docdescriptor(uselfuobjectunameumoducl((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocdataKsuTextDoc.docdatac
	Cs�|j|�}|re|r%|dp(d|}|t|�}	|	dkre|d|	�d}qen|r~|j|�dp�d|}|dk	r�|d|jt|��7}n|S(u-Produce text documentation for a data object.u = uiNu...u
(ureprulenubolduNoneuindentustr(
uselfuobjectunameumoduparentumaxlenudocureprulineuchop((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudocotherOs# uTextDoc.docotherN(u__name__u
__module__u__qualname__u__doc__uTextRepru_repr_instanceureprubolduindentusectionuNoneu
formattreeu	docmoduleudocclassuformatvalueu
docroutineu_docdescriptorudocpropertyudocdataudocother(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuTextDoc�s		ey1
uTextDoccBs&|EeZdZdZdd�ZdS(u
_PlainTextDocu2Subclass of TextDoc which overrides string stylingcCs|S(N((uselfutext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyubold]su_PlainTextDoc.boldN(u__name__u
__module__u__qualname__u__doc__ubold(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
_PlainTextDoc[su
_PlainTextDoccCst�at|�dS(uCThe first time this is called, determine what kind of pager to use.N(ugetpagerupager(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyupagerbs	upagercCs�ttjd�stStjj�s6tjj�r:tSdtjkr�tjdkrbdd�Stjj	d�dkr�d	d�Sd
d�Sntjj	d�dkr�tStjdks�tjj
d�r�dd�Sttd
�rtjd�dkrdd�Sddl}|j
�\}}tj|�z:ttd
�rftjd|�dkrfdd�StSWdtj|�XdS(u2Decide what method to use for paging through text.uisattyuPAGERuwin32cSstt|�tjd�S(NuPAGER(u
tempfilepageruplainuosuenviron(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>psugetpager.<locals>.<lambda>uTERMudumbuemacscSstt|�tjd�S(NuPAGER(u	pipepageruplainuosuenviron(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>rscSst|tjd�S(NuPAGER(u	pipepageruosuenviron(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>tsuos2cSstt|�d�S(Numore <(u
tempfilepageruplain(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>xsusystemu(less) 2>/dev/nullicSs
t|d�S(Nuless(u	pipepager(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>zsNu	more "%s"cSs
t|d�S(Numore(u	pipepager(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�s(udumbuemacs(udumbuemacs(uhasattrusysustdoutu
plainpagerustdinuisattyuosuenvironuplatformugetu
startswithusystemutempfileumkstempucloseuttypageruunlink(utempfileufdufilename((u*/opt/alt/python33/lib64/python3.3/pydoc.pyugetpagerhs0 


!
$

(
ugetpagercCstjdd|�S(u%Remove boldface formatting from text.u.u(ureusub(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuplain�suplaincCsFtj|d�}y|j|�|j�Wntk
rAYnXdS(u3Page through text by feeding it to another program.uwN(uosupopenuwriteucloseuIOError(utextucmdupipe((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	pipepager�s

u	pipepagercCspddl}|j�}t|d�}|j|�|j�ztj|d|d�Wdtj|�XdS(u<Page through text by invoking a program on a temporary file.iNuwu "u"(utempfileumktempuopenuwriteucloseuosusystemuunlink(utextucmdutempfileufilenameufile((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
tempfilepager�s

u
tempfilepagerc	Cs�t|�jd�}yGddl}tjj�}|j|�}|j|�dd�}Wn*tt	fk
r�d}dd�}YnXzHtjj
dd�d	}}tjjdj|d|��d�x�||d�r�tjjd
�tjj�|�}|dkr)tjjd
�Pn8|dkratjjd
||d�|d	}q�n|dkr�|||}|dkr�d}q�ntjjddj||||��d�||}q�WWd|r�|j||j|�nXdS(u%Page through text on a text terminal.u
iNcSstjjd�S(Ni(usysustdinuread(((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suttypager.<locals>.<lambda>cSs!tjj�dd�dd�S(Nii����(usysustdinureadline(((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suLINESiiu
-- more --uquQu
          
u
ubuBu(uquQ(u
u
(ubuBu(uplainusplituttyusysustdinufilenou	tcgetattru	setcbreakuImportErroruAttributeErroruNoneuosuenvironugetustdoutuwriteujoinuflushu	tcsetattru	TCSAFLUSH(	utextulinesuttyufduoldugetcharuruincuc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuttypager�s@
'
	
/uttypagercCstjjt|��dS(u>Simply print unformatted text.  This is the ultimate fallback.N(usysustdoutuwriteuplain(utext((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
plainpager�su
plainpagercCs'tj|�rT|jtjkr,d|jSt|d�rFd|jSd|jSntj|�rnd|jStj|�r�d|jj	|jj|jfStj
|�r�d|jj	|jj|jfStj|�r�d|jStj|�rd	|jStj
|�rd
|jSt|�jS(u/Produce a short description of the given thing.ubuilt-in module u__path__upackage umodule ubuilt-in function ugetset descriptor %s.%s.%sumember descriptor %s.%s.%suclass u	function umethod (uinspectuismoduleu__name__usysubuiltin_module_namesuhasattru	isbuiltinuisgetsetdescriptoru__objclass__u
__module__uismemberdescriptoruisclassu
isfunctionuismethodutype(uthing((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudescribe�s.udescribecCs�dd�|jd�D�}d\}}xW|t|�kr�tdj|d|d��|�}|r}||d}}q+Pq+W|r�|}nt}xD||d�D]2}yt||�}Wq�tk
r�dSYq�Xq�W|S(u@Locate an object by name or dotted path, importing as necessary.cSsg|]}|r|�qS(((u.0upart((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>�s	ulocate.<locals>.<listcomp>u.iNi(Ni(usplituNoneulenu
safeimportujoinubuiltinsugetattruAttributeError(upathu	forceloadupartsumoduleunu
nextmoduleuobjectupart((u*/opt/alt/python33/lib64/python3.3/pydoc.pyulocate�s &	

ulocatecCsvt|t�rAt||�}|s7td|��n||fSt|dd�}|t|t�rk|ndfSdS(uDGiven an object or a path to an object, get the object and its name.u$no Python documentation found for %ru__name__N(u
isinstanceustrulocateuImportErrorugetattruNone(uthingu	forceloaduobjectuname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuresolve�s
uresolveu Python Library Documentation: %scCs0|dkrt}nt||�\}}t|�}tj|�}|r{d|kr{|d|d|jd��7}n&|r�||k	r�|d|j7}ntj|�p�tj	|�p�tj
|�p�tj|�p�tj|�p�t
|t�st|�}|d7}n||d|j||�S(uBRender text documentation, given an object or a path to an object.u.u in Nu in module u objectu

(uNoneutexturesolveudescribeuinspectu	getmoduleurfindu__name__uismoduleuisclassu	isroutineuisgetsetdescriptoruismemberdescriptoru
isinstanceupropertyutypeudocument(uthingutitleu	forceloadurendereruobjectunameudescumodule((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
render_doc	s$	$
u
render_doccCs�yE|dkr(tt|||��n|jt|||t��Wn5ttfk
r|}zt|�WYdd}~XnXdS(uCDisplay text documentation, given an object or a path to an object.N(uNoneupageru
render_docuwriteu	plaintextuImportErroruErrorDuringImportuprint(uthingutitleu	forceloaduoutputuvalue((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudoc"s udoccCs�y~t||�\}}tjt|�tj||��}t|dddd�}|j|�|j�td|d�Wn5t	t
fk
r�}zt|�WYdd}~XnXdS(u<Write HTML documentation to a file in the current directory.u.htmluwuencodinguutf-8uwroteN(uresolveuhtmlupageudescribeudocumentuopenuwriteucloseuprintuImportErroruErrorDuringImport(uthingu	forceloaduobjectunameupageufileuvalue((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuwritedoc-s$

uwritedocucCsL|dkri}nx0tj|g|�D]\}}}t|�q+WdS(uAWrite out HTML documentation for all modules in a directory tree.N(uNoneupkgutilu
walk_packagesuwritedoc(udirupkgpathudoneuimporterumodnameuispkg((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	writedocs9s
	%u	writedocscBs|EeZdZi!dd6dd6dd6dd6dd6d7d	6d8d
6d9d6d:d6d;d6d<d6dd6d=d6dd6dd6d>d6dd6d?d6d@d6dAd6dBd!6d#d$6dCd%6dDd'6dd)6dd*6dEd+6dFd,6dGd.6dHd6dId/6dJd6dKd26ZidLd;6dMdP6dNd#6dOdQ6dPd^6dQd_6dRdb6ZidcdB6ddd?6dedf6dgdh6didj6dkdl6dmdn6d;do6dpdq6drds6dtdu6dvdw6dvdx6dydz6dyd{6Zxdej�D]V\ZZxGeD]?Z	ej
e	e�Zeekr�ed|eZneee	<q�Wq�WiJdSd6dTd;6dUd�6dVd�6dWd�6dXd�6dYd�6dZd�6d[db6d\d�6d�d�6d]d&6d^d�6d_d�6d`d�6dd�6dd�6dad�6dbdi6dcd�6ddd�6ded�6dfd 6dd�6dgd�6d�dP6d�d�6dhd�6did�6djd6dkd�6dld�6dmd"6dnd�6dod�6dpd�6dqd�6drd�6d�d�6d�d�6dsd-6dtd�6dud�6dvd�6dwdp6dxd�6d�d�6dyd�6dzd�6d{d�6d|d�6d}d�6d~d�6dd�6d�d�6d�d�6d�dd6d�dQ6d�d�6d�d�6d�d_6d�d#6d�d6d	d6d�d6d�d^6dd6d.d6dd6dd6d�d6d�d6d�d6d�d6Zd6d6dd�Z
edd��Zedd��Zdd�Ze�Zedd�Zdd�Zdd�Zd d!�Zd"d#�Zd$d%d&d'�Zd(d)�Zd*d+�Zd,d-�Zdd.d/�Zdd0d1�Zd2d3�Zdd4d5�Z d6S(�uHelperuuFalseuNoneuTrueuBOOLEANuanduwithuasuassertubreaku	while foruclassuCLASSES SPECIALMETHODSucontinueufunctionudefudeluBASICMETHODSuifuelifuelseutryuexceptufinallyuforubreak continue whileuimportufromuglobalunonlocal NAMESPACESu
TRUTHVALUEuMODULESuinuSEQUENCEMETHODSu
COMPARISONuisulambdau	FUNCTIONSunonlocaluglobal NAMESPACESunotuorupassuraiseu
EXCEPTIONSureturnuwhileubreak continue if TRUTHVALUEu CONTEXTMANAGERS EXCEPTIONS yielduyieldu'u'''ur'ub'u"""u"ur"ub"uSTRINGSu+u-u*u**u/u//u%u<<u>>u&u|u^u~u<u>u<=u>=u==u!=u<>u	OPERATORSuUNARYu+=u-=u*=u/=u%=u&=u|=u^=u<<=u>>=u**=u//=uAUGMENTEDASSIGNMENTuBITWISEujuJuCOMPLEXuOPERATORS FORMATTINGuPOWERuTUPLES LISTS FUNCTIONSu,u ATTRIBUTES FLOAT MODULES OBJECTSu.uELLIPSISu...uSLICINGS DICTIONARYLITERALSu:u	def classu@u\uPRIVATENAMESu_uPRIVATENAMES SPECIALMETHODSu__u
BACKQUOTESu`uTUPLES FUNCTIONS CALLSu(u)uLISTS SUBSCRIPTS SLICINGSu[u]u utypesuRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspectuTYPESustringsu4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPESustring-methodsuSTRINGS FORMATTINGu
STRINGMETHODSu
formatstringsu
FORMATTINGu:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPESuUNICODEunumbersuINTEGER FLOAT COMPLEX TYPESuNUMBERSuintegersu	int rangeuINTEGERufloatingu
float mathuFLOATu	imaginaryu
complex cmathutypessequ$STRINGMETHODS FORMATTING range LISTSu	SEQUENCESuDICTIONARIESuMAPPINGSutypesfunctionsu	def TYPESutypesmethodsuclass def CLASSES TYPESuMETHODSubltin-code-objectsucompile FUNCTIONS TYPESuCODEOBJECTSubltin-type-objectsutypes TYPESuTYPEOBJECTSuFRAMEOBJECTSu
TRACEBACKSubltin-null-objectuNONEubltin-ellipsis-objectuSLICINGSubltin-file-objectsuFILESuspecialattrsuSPECIALATTRIBUTESu!class SPECIALMETHODS PRIVATENAMESuCLASSESutypesmodulesuPACKAGESuoperator-summaryu�lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESuEXPRESSIONSu
PRECEDENCEuobjectsuOBJECTSuspecialnamesubBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESuSPECIALMETHODSu
customizationuhash repr str SPECIALMETHODSuattribute-accessuATTRIBUTES SPECIALMETHODSuATTRIBUTEMETHODSucallable-typesuCALLS SPECIALMETHODSuCALLABLEMETHODSusequence-typesu(SEQUENCES SEQUENCEMETHODS SPECIALMETHODSuMAPPINGS SPECIALMETHODSuMAPPINGMETHODSu
numeric-typesu*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODSu
NUMBERMETHODSu	execmodelu%NAMESPACES DYNAMICFEATURES EXCEPTIONSu	EXECUTIONunamingu3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURESu
NAMESPACESudynamic-featuresuDYNAMICFEATURESuSCOPINGuFRAMESu
exceptionsutry except finally raiseuconversionsuCONVERSIONSuidentifiersukeywords SPECIALIDENTIFIERSuIDENTIFIERSu
id-classesuSPECIALIDENTIFIERSuatom-identifiersu
atom-literalsu=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALSuLITERALSuTUPLESu	exprlistsuTUPLES LITERALSu
TUPLELITERALSutypesseq-mutableuLISTLITERALSuLISTSulistsuLISTS LITERALSutypesmappinguDICTIONARYLITERALSudictuDICTIONARIES LITERALSuattribute-referencesu(getattr hasattr setattr ATTRIBUTEMETHODSu
ATTRIBUTESu
subscriptionsu
SUBSCRIPTSuslicingsucallsuCALLSupoweruunaryubinaryuBINARYushiftinguSHIFTINGubitwiseucomparisonsuEXPRESSIONS BASICMETHODSubooleansuEXPRESSIONS TRUTHVALUEu	ASSERTIONu
assignmentu
ASSIGNMENTu	augassignuDELETIONu	RETURNINGu	IMPORTINGuCONDITIONALucompoundufor while break continueuLOOPINGutruthu if while and or not BASICMETHODSudebuggerupdbu	DEBUGGINGucontext-managersuCONTEXTMANAGERScCs||_||_dS(N(u_inputu_output(uselfuinputuoutput((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�s	uHelper.__init__cCs|jptjS(N(u_inputusysustdin(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�suHelper.<lambda>cCs|jptjS(N(u_outputusysustdout(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<lambda>�scCs)tj�dddkr%|�dSdS(Niiu?uu<pydoc.Helper instance>(uinspectustack(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__repr__�suHelper.__repr__cCsG||jk	r|j|�n$|j�|j�|jjd�dS(Nu
You are now leaving help and returning to the Python interpreter.
If you want to ask for help on a particular object directly from the
interpreter, you can type "help(object)".  Executing "help('string')"
has the same effect as typing a particular string at the help> prompt.
(u_GoInteractiveuhelpuintrouinteractuoutputuwrite(uselfurequest((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__call__�s

	uHelper.__call__cCs�|jjd�x}y|jd�}|s/PnWnttfk
rKPYnXt|dddd�j�}|j�dkr�Pn|j|�qdS(	Nu
uhelp> u"uu'uququit(uququit(	uoutputuwriteugetlineuKeyboardInterruptuEOFErrorureplaceustripuloweruhelp(uselfurequest((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuinteractsuHelper.interactcCsJ|jtjkrt|�S|jj|�|jj�|jj�SdS(u.Read one line, using input() when appropriate.N(uinputusysustdinuoutputuwriteuflushureadline(uselfuprompt((u*/opt/alt/python33/lib64/python3.3/pydoc.pyugetlines


uHelper.getlinecCs�t|�td�krr|j�}|dkr=|j�q�|dkrV|j�q�|dkro|j�q�|dkr�|j�q�|dkr�|j�q�|dd�dkr�|j|j�d	�q�||jkr�|j	|�q�|dkrt
t|�d
�q�||jkr1|j
|�q�||jkrP|j
|�q�|r�t
|d
d|j�q�n/t|t�r�|�nt
|d
d|j�|jjd�dS(Nuuhelpukeywordsusymbolsutopicsumodulesiumodules iuTrueuFalseuNoneuHelp on %s:uoutputu
(uTrueuFalseuNone(utypeustripuintroulistkeywordsulistsymbolsu
listtopicsulistmodulesusplitusymbolsu
showsymboludocuevalukeywordsu	showtopicutopicsu_outputu
isinstanceuHelperuoutputuwrite(uselfurequest((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhelps8





uHelper.helpcCs2|jjdttjdd�gd��dS(Nu�
Welcome to Python %s!  This is the interactive help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://docs.python.org/%s/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".
ii(uoutputuwriteutupleusysuversion(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuintro2s	uHelper.introiiPc		Cs�tt|��}||}t|�|d|}x�t|�D]�}x�t|�D]z}|||}|t|�krT|jj||�||dkr�|jjdd|dt||��q�qTqTW|jjd�qAWdS(Niu u
(ulistusortedulenurangeuoutputuwrite(	uselfuitemsucolumnsuwidthucolwurowsurowucolui((u*/opt/alt/python33/lib64/python3.3/pydoc.pyulistCs
4uHelper.listcCs*|jjd�|j|jj��dS(NuN
Here is a list of the Python keywords.  Enter any keyword to get more help.

(uoutputuwriteulistukeywordsukeys(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyulistkeywordsPs	uHelper.listkeywordscCs*|jjd�|j|jj��dS(Nux
Here is a list of the punctuation symbols which Python assigns special meaning
to. Enter any symbol to get more help.

(uoutputuwriteulistusymbolsukeys(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyulistsymbolsWs	uHelper.listsymbolscCs*|jjd�|j|jj��dS(NuN
Here is a list of available topics.  Enter any topic name to get more help.

(uoutputuwriteulistutopicsukeys(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
listtopics_s	uHelper.listtopicsc
Cs�yddl}Wn&tk
r8|jjd�dSYnX|jj||jj|��}|s~|jjdt|��dSt|�td�kr�|j	||�S|\}}y|jj|}Wn0t
k
r�|jjdt|��dSYnXt|j�d�|r*|pdd|}n|r�ddl
}tj�}	|j|	�jddj|j��d�|jjd	|	j��ndS(
Niut
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
uno documentation found for %s
uu
u uRelated help topics: u, u
%s
(upydoc_data.topicsuImportErroruoutputuwriteutopicsugetukeywordsureprutypeu	showtopicuKeyErrorupagerustripu	formatteruiouStringIOu
DumbWriterusend_flowing_dataujoinusplitugetvalue(
uselfutopicu
more_xrefsu
pydoc_datautargetulabeluxrefsudocu	formatterubuffer((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	showtopicfs6
		!
	uHelper.showtopiccCs�yddl}Wntk
r(dSYnX|jj||jj|��}|s_td��nt|t�r~|j||�S|\}}|jj|}|r�|p�dd|}n||fS(u*Return unbuffered tuple of (topic, xrefs).

        If an error occurs here, the exception is caught and displayed by
        the url handler.

        This function duplicates the showtopic method but returns its
        result directly so it can be formatted for display in an html page.
        iNut
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
uucould not find topicu (ut
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
u(	upydoc_data.topicsuImportErrorutopicsugetukeywordsu
ValueErroru
isinstanceustru	_gettopic(uselfutopicu
more_xrefsu
pydoc_datautargetulabeluxrefsudoc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	_gettopic�s	
	!uHelper._gettopiccCs9|j|}|jd�\}}}|j||�dS(Nu (usymbolsu	partitionu	showtopic(uselfusymbolutargetutopicu_uxrefs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
showsymbol�s
uHelper.showsymbolcs�|r#|jjd�t|�np|jjd�i}|dd���fdd�}t�j�d|�|j|j��|jjd�dS(	NuO
Here is a list of matching modules.  Enter any module name to get more help.

uI
Please wait a moment while I gather a list of all available modules...

cSsY|r3|dd�dkr3|dd�d}n|jd�dkrUd||<ndS(	Ni	u	.__init__u
 (package)u.iii����i����(ufind(upathumodnameudescumodules((u*/opt/alt/python33/lib64/python3.3/pydoc.pyucallback�su$Helper.listmodules.<locals>.callbackcs�d|d�dS(N(uNone(umodname(ucallback(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuonerror�su#Helper.listmodules.<locals>.onerroruonerroru�
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose descriptions contain the word "spam".
(uoutputuwriteuaproposu
ModuleScannerurunulistukeys(uselfukeyumodulesuonerror((ucallbacku*/opt/alt/python33/lib64/python3.3/pydoc.pyulistmodules�s	
		uHelper.listmodulesN(uassertu(ubreaku	while for(uclassuCLASSES SPECIALMETHODS(ucontinueu	while for(ufunctionu(udeluBASICMETHODS(uelseu	while for(uforubreak continue while(uglobalunonlocal NAMESPACES(uifu
TRUTHVALUE(uimportuMODULES(uinuSEQUENCEMETHODS(ulambdau	FUNCTIONS(unonlocaluglobal NAMESPACES(upassu(uraiseu
EXCEPTIONS(ureturnu	FUNCTIONS(utryu
EXCEPTIONS(uwhileubreak continue if TRUTHVALUE(uwithu CONTEXTMANAGERS EXCEPTIONS yield(uyieldu(u'u'''ur'ub'u"""u"ur"ub"(u+u-u*u**u/u//u%u<<u>>u&u|u^u~u<u>u<=u>=u==u!=u<>(u<u>u<=u>=u==u!=u<>(u-u~(u+=u-=u*=u/=u%=u&=u|=u^=u<<=u>>=u**=u//=(u<<u>>u&u|u^u~(ujuJ(utypesuRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect(ustringsu4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES(ustring-methodsuSTRINGS FORMATTING(u
formatstringsu	OPERATORS(ustringsu:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES(unumbersuINTEGER FLOAT COMPLEX TYPES(uintegersu	int range(ufloatingu
float math(u	imaginaryu
complex cmath(utypessequ$STRINGMETHODS FORMATTING range LISTS(utypesfunctionsu	def TYPES(utypesmethodsuclass def CLASSES TYPES(ubltin-code-objectsucompile FUNCTIONS TYPES(ubltin-type-objectsutypes TYPES(ubltin-null-objectu(ubltin-ellipsis-objectuSLICINGS(ubltin-file-objectsu(uspecialattrsu(utypesu!class SPECIALMETHODS PRIVATENAMES(utypesmodulesuimport(uoperator-summaryu�lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIES(uobjectsuTYPES(uspecialnamesubBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSES(u
customizationuhash repr str SPECIALMETHODS(uattribute-accessuATTRIBUTES SPECIALMETHODS(ucallable-typesuCALLS SPECIALMETHODS(usequence-typesu(SEQUENCES SEQUENCEMETHODS SPECIALMETHODS(usequence-typesuMAPPINGS SPECIALMETHODS(u
numeric-typesu*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS(u	execmodelu%NAMESPACES DYNAMICFEATURES EXCEPTIONS(unamingu3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES(udynamic-featuresu(u
exceptionsutry except finally raise(uconversionsu(uidentifiersukeywords SPECIALIDENTIFIERS(u
id-classesu(uatom-identifiersu(u
atom-literalsu=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS(u	exprlistsuTUPLES LITERALS(utypesseq-mutableuLISTLITERALS(ulistsuLISTS LITERALS(utypesmappinguDICTIONARYLITERALS(udictuDICTIONARIES LITERALS(uattribute-referencesu(getattr hasattr setattr ATTRIBUTEMETHODS(u
subscriptionsuSEQUENCEMETHODS(uslicingsuSEQUENCEMETHODS(ucallsuEXPRESSIONS(upoweruEXPRESSIONS(uunaryuEXPRESSIONS(ubinaryuEXPRESSIONS(ushiftinguEXPRESSIONS(ubitwiseuEXPRESSIONS(ucomparisonsuEXPRESSIONS BASICMETHODS(ubooleansuEXPRESSIONS TRUTHVALUE(u
assignmentuAUGMENTEDASSIGNMENT(u	augassignu
NUMBERMETHODS(ucompoundufor while break continue(utruthu if while and or not BASICMETHODS(udebuggerupdb(ucontext-managersuwith(!u__name__u
__module__u__qualname__ukeywordsu_symbols_inverseusymbolsuitemsutopicusymbols_usymbolugetutopicsuNoneu__init__upropertyuinputuoutputu__repr__uobjectu_GoInteractiveu__call__uinteractugetlineuhelpuintroulistulistkeywordsulistsymbolsu
listtopicsu	showtopicu	_gettopicu
showsymbolulistmodules(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuHelper@s>





	
	
 uHelpercBs2|EeZdZdZdd�Zdd�ZdS(uScanneruA generic tree iterator.cCs2|dd�|_g|_||_||_dS(N(urootsustateuchildrenudescendp(uselfurootsuchildrenudescendp((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�s		uScanner.__init__cCs�|jsF|jsdS|jjd�}||j|�fg|_n|jd\}}|sv|jj�|j�S|jd�}|j|�r�|jj||j|�f�n|S(Niii����(ustateurootsuNoneupopuchildrenunextudescendpuappend(uselfurootunodeuchildrenuchild((u*/opt/alt/python33/lib64/python3.3/pydoc.pyunext�s		

"uScanner.nextN(u__name__u
__module__u__qualname__u__doc__u__init__unext(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuScanner�suScannercBs/|EeZdZdZddddd�ZdS(u
ModuleScanneru7An interruptible scanner that searches module synopses.cCs�|r|j�}nd|_i}x�tjD]�}|dkr.d||<|dkri|d|d�q�t|�jp{d}|jd�d}|d|}|j�j	|�dkr�|d||�q�q.q.Wx�t
jd|�D]�\}	}}
|jrPn|dkr"|d|d�q�y|	j|�}Wnt
k
rLw�YnXt|d�r�y|j|�}Wn(tk
r�|r�||�nw�YnXttj|��p�d}t|d	�r�|j|�}
qHd}
niy|j|�}Wn(tk
r|r||�nw�YnX|jp)dj�d}t|d
d�}
|d|}|j�j	|�dkr�||
||�q�q�W|r�|�ndS(Nu__main__iuu
iu - uonerroru
get_sourceuget_filenameu__file__F(uloweruFalseuquitusysubuiltin_module_namesuNoneu
__import__u__doc__usplitufindupkgutilu
walk_packagesufind_moduleuSyntaxErroruhasattru
get_sourceu	Exceptionusource_synopsisuiouStringIOuget_filenameuload_moduleuImportErroru
splitlinesugetattr(uselfucallbackukeyu	completeruonerroruseenumodnameunameudescuimporteruispkguloaderusourceupathumodule((u*/opt/alt/python33/lib64/python3.3/pydoc.pyurun�s^	
"	


	

uModuleScanner.runN(u__name__u
__module__u__qualname__u__doc__uNoneurun(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
ModuleScanner�su
ModuleScannercCsUdd�}dd�}tj��+tjd�t�j||d|�WdQXdS(uAPrint all the one-line module summaries that contain a substring.cSsH|dd�dkr-|dd�d}nt||o@d|�dS(Ni	u	.__init__u
 (package)u- i����i����(uprint(upathumodnameudesc((u*/opt/alt/python33/lib64/python3.3/pydoc.pyucallbacksuapropos.<locals>.callbackcSsdS(N((umodname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuonerrorsuapropos.<locals>.onerroruignoreuonerrorN(uwarningsucatch_warningsufilterwarningsu
ModuleScannerurun(ukeyucallbackuonerror((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuaproposs


uaproposcs�ddl�ddl�ddl�ddl�Gdd�d�jj��G�fdd�d�jj��G�����fdd�d�j�}|||�}|j�x%|j	r�|j
r�tjd	�q�W|S(
u7Start an HTTP server thread on a specific port.

    Start an HTML/text server thread, so HTML or text documents can be
    browsed dynamically and interactively with a Web browser.  Example use:

        >>> import time
        >>> import pydoc

        Define a URL handler.  To determine what the client is asking
        for, check the URL and content_type.

        Then get or generate some text or HTML code and return it.

        >>> def my_url_handler(url, content_type):
        ...     text = 'the URL sent was: (%s, %s)' % (url, content_type)
        ...     return text

        Start server thread on port 0.
        If you use port 0, the server will pick a random port number.
        You can then use serverthread.port to get the port number.

        >>> port = 0
        >>> serverthread = pydoc._start_server(my_url_handler, port)

        Check that the server is really started.  If it is, open browser
        and get first page.  Use serverthread.url as the starting page.

        >>> if serverthread.serving:
        ...    import webbrowser

        The next two lines are commented out so a browser doesn't open if
        doctest is run on this module.

        #...    webbrowser.open(serverthread.url)
        #True

        Let the server do its thing. We just need to monitor its status.
        Use time.sleep so the loop doesn't hog the CPU.

        >>> starttime = time.time()
        >>> timeout = 1                    #seconds

        This is a short timeout for testing purposes.

        >>> while serverthread.serving:
        ...     time.sleep(.01)
        ...     if serverthread.serving and time.time() - starttime > timeout:
        ...          serverthread.stop()
        ...          break

        Print any errors that may have occurred.

        >>> print(serverthread.error)
        None
   iNcBs,|EeZdZdd�Zdd�ZdS(u!_start_server.<locals>.DocHandlercSsx|jjd�rd}nd}|jd�|jdd|�|j�|jj|j|j|�jd��dS(	u�Process a request from an HTML browser.

            The URL received is in self.path.
            Get an HTML page from self.urlhandler and send it.
            u.cssutext/cssu	text/htmli�uContent-Typeu%s; charset=UTF-8uutf-8N(	upathuendswithu
send_responseusend_headeruend_headersuwfileuwriteu
urlhandleruencode(uselfucontent_type((u*/opt/alt/python33/lib64/python3.3/pydoc.pyudo_GETds	

u(_start_server.<locals>.DocHandler.do_GETcWsdS(N((uselfuargs((u*/opt/alt/python33/lib64/python3.3/pydoc.pyulog_messagetsu-_start_server.<locals>.DocHandler.log_messageN(u__name__u
__module__u__qualname__udo_GETulog_message(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
DocHandlerbsu
DocHandlercs>|EeZdZdd�Z�fdd�Zdd�ZdS(u _start_server.<locals>.DocServercSsMd|_|j|f|_||_|jj||j|j�d|_dS(Nu	localhostF(uhostuaddressucallbackubaseu__init__uhandleruFalseuquit(uselfuportucallback((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__zs
		u)_start_server.<locals>.DocServer.__init__cs^xM|jsO�j|jj�gggd�\}}}|r|j�qqW|j�dS(Ni(uquituselectusocketufilenouhandle_requestuserver_close(uselfurduwruex(uselect(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuserve_until_quit�s
-u1_start_server.<locals>.DocServer.serve_until_quitcSs-|jj|�|jr)|j|�ndS(N(ubaseuserver_activateucallback(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuserver_activate�s	u0_start_server.<locals>.DocServer.server_activateN(u__name__u
__module__u__qualname__u__init__userve_until_quituserver_activate(u
__locals__(uselect(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	DocServerxsu	DocServercsY|EeZdZ�fdd�Z����fdd�Zdd�Zdd�Zd	S(
u#_start_server.<locals>.ServerThreadcs>||_t|�|_�jj|�d|_d|_dS(NF(	u
urlhandleruintuportuThreadu__init__uFalseuservinguNoneuerror(uselfu
urlhandleruport(u	threading(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu__init__�s
		u,_start_server.<locals>.ServerThread.__init__cs�ye�jj�_��_�jj�_t|j��_�|j	|j
�}||_|j�Wn.t
k
r�}z||_WYdd}~XnXdS(uStart the server.N(userveru
HTTPServerubaseuhandlerumessageuMessageuMessageClassustaticmethodu
urlhandleruportureadyu	docserveruserve_until_quitu	Exceptionuerror(uselfudocsvrue(u
DocHandleru	DocServeruemailuhttp(u*/opt/alt/python33/lib64/python3.3/pydoc.pyurun�s		u'_start_server.<locals>.ServerThread.runcSs>d|_|j|_|j|_d|j|jf|_dS(Nu
http://%s:%d/T(uTrueuservinguhostuserver_portuportuurl(uselfuserver((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuready�s	u)_start_server.<locals>.ServerThread.readycSs"d|j_d|_d|_dS(u&Stop the server and this thread nicelyNTF(uTrueu	docserveruquituFalseuservinguNoneuurl(uself((u*/opt/alt/python33/lib64/python3.3/pydoc.pyustop�s	u(_start_server.<locals>.ServerThread.stopN(u__name__u
__module__u__qualname__u__init__urunureadyustop(u
__locals__(u
DocHandleru	DocServeruemailuhttpu	threading(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuServerThread�s
uServerThreadg{�G�z�?(
uhttp.serveru
email.messageuselectu	threadinguserveruBaseHTTPRequestHandleru
HTTPServeruThreadustartuerroruservingutimeusleep(u
urlhandleruportuServerThreaduthread((u
DocHandleru	DocServeruemailuhttpuselectu	threadingu*/opt/alt/python33/lib64/python3.3/pydoc.pyu
_start_server%s8"+"
u
_start_serveru	text/htmlc
s�G�fdd�dt�}|���fdd���fdd���fdd���fd	d
���fdd��	�fd
d���fdd���fdd���fdd�����������	f	dd�}|jd�r|dd�}n|dkr}tjjtjjt��}tjj||�}t|��}dj|j	��SWdQXn|dkr�||�St
d||f��dS(uThe pydoc url handler for use with the pydoc server.

    If the content_type is 'text/css', the _pydoc.css style
    sheet is read and returned if it exits.

    If the content_type is 'text/html', then the result of
    get_html_page(url) is returned.
    cs2|EeZdZ�fdd�Zdd�ZdS(u_url_handler.<locals>._HTMLDoccs'd}d|}d||��|fS(uFormat an HTML page.upydoc_data/_pydoc.cssu1<link rel="stylesheet" type="text/css" href="%s">u<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Pydoc: %s</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
%s</head><body bgcolor="#f0f0f8">%s<div style="clear:both;padding-top:.5em;">%s</div>
</body></html>((uselfutitleucontentsucss_pathucss_link(uhtml_navbar(u*/opt/alt/python33/lib64/python3.3/pydoc.pyupage�su#_url_handler.<locals>._HTMLDoc.pagecSsd||fS(Nu<a href="getfile?key=%s">%s</a>((uselfuurlupath((u*/opt/alt/python33/lib64/python3.3/pydoc.pyufilelink�su'_url_handler.<locals>._HTMLDoc.filelinkN(u__name__u
__module__u__qualname__upageufilelink(u
__locals__(uhtml_navbar(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu_HTMLDoc�s
u_HTMLDoccsU�jdtj�tj�dtj�f�}d|�jtjdd��fS(Nu%s [%s, %s]iuZ
            <div style='float:left'>
                Python %s<br>%s
            </div>
            <div style='float:right'>
                <div style='text-align:center'>
                  <a href="index.html">Module Index</a>
                  : <a href="topics.html">Topics</a>
                  : <a href="keywords.html">Keywords</a>
                </div>
                <div>
                    <form action="get" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Get">
                    </form>&nbsp;
                    <form action="search" style='display:inline;'>
                      <input type=text name=key size=15>
                      <input type=submit value="Search">
                    </form>
                </div>
            </div>
            uterseT(uescapeuplatformupython_versionupython_buildupython_compileruTrue(uversion(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_navbar�s
u!_url_handler.<locals>.html_navbarcs�dd�}�jddd�}dd�tjD�}�j||�}|d�jd	dd
|�g}i}x*tjD]}|j�j||��q{W|jd�dd
j|�fS(uModule Index page.cSsd||fS(Nu<a href="%s.html">%s</a>((uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	bltinlink�su3_url_handler.<locals>.html_index.<locals>.bltinlinku7<big><big><strong>Index of Modules</strong></big></big>u#ffffffu#7799eecSs"g|]}|dkr|�qS(u__main__((u.0uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
<listcomp>�s	u4_url_handler.<locals>.html_index.<locals>.<listcomp>u<p>uBuilt-in Modulesu#ee77aau|<p align=right><font color="#909090" face="helvetica,arial"><strong>pydoc</strong> by Ka-Ping Yee&lt;ping@lfw.org&gt;</font>uIndex of Modulesu(	uheadingusysubuiltin_module_namesumulticolumnu
bigsectionupathuappenduindexujoin(u	bltinlinkuheadingunamesucontentsuseenudir(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
html_index�su _url_handler.<locals>.html_indexc
s�g��fdd�}tj��%tjd�t�j||�WdQXdd�}g}�jddd	�}x+�D]#\}}|j||�|�qyW|�jd
|dddj|��}d
|fS(uSearch results page.csN|dd�dkr-|dd�d}n�j||oCd|f�dS(Ni	u	.__init__u
 (package)u- i����i����(uappend(upathumodnameudesc(u
search_result(u*/opt/alt/python33/lib64/python3.3/pydoc.pyucallback	su3_url_handler.<locals>.html_search.<locals>.callbackuignoreNcSsd||fS(Nu<a href="%s.html">%s</a>((uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	bltinlink	su4_url_handler.<locals>.html_search.<locals>.bltinlinku5<big><big><strong>Search Results</strong></big></big>u#ffffffu#7799eeukey = %su#ee77aau<br>uSearch Results(	uwarningsucatch_warningsufilterwarningsu
ModuleScannerurunuheadinguappendu
bigsectionujoin(ukeyucallbacku	bltinlinkuresultsuheadingunameudescucontents(uhtml(u
search_resultu*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_search
	s

	 u!_url_handler.<locals>.html_searchcs�|jdd�}tj|��}�j|j��}WdQXd|}�jddd�}|�jd|dd	|�}d
||fS(u-Get and display a source file listing safely.u%20u Nu
<pre>%s</pre>u3<big><big><strong>File Listing</strong></big></big>u#ffffffu#7799eeuFile: %su#ee77aau
getfile %s(ureplaceutokenizeuopenuescapeureaduheadingu
bigsection(upathufpulinesubodyuheadingucontents(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_getfile&	s
	u"_url_handler.<locals>.html_getfilecsndd�}�jddd�}ttjj��}�j||�}|�jddd|�}d|fS(uIndex of topic texts available.cSsd||fS(Nu<a href="topic?key=%s">%s</a>((uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	bltinlink6	su4_url_handler.<locals>.html_topics.<locals>.bltinlinku,<big><big><strong>INDEX</strong></big></big>u#ffffffu#7799eeuTopicsu#ee77aa(uheadingusorteduHelperutopicsukeysumulticolumnu
bigsection(u	bltinlinkuheadingunamesucontents(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_topics3	s	u!_url_handler.<locals>.html_topicscsn�jddd�}ttjj��}dd�}�j||�}|�jddd|�}d|fS(uIndex of keywords.u,<big><big><strong>INDEX</strong></big></big>u#ffffffu#7799eecSsd||fS(Nu<a href="topic?key=%s">%s</a>((uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	bltinlinkJ	su6_url_handler.<locals>.html_keywords.<locals>.bltinlinkuKeywordsu#ee77aa(uheadingusorteduHelperukeywordsukeysumulticolumnu
bigsection(uheadingunamesu	bltinlinkucontents(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
html_keywordsC	s	u#_url_handler.<locals>.html_keywordscs	tj�}t||�}|j|�\}}||jkrHd}nd}�jd|dd�}d�j|�}�j|dd|�}|r�t|j	��}dd	�}�j
||�}�jd
dd|�}nd||fdj|||f�fS(
uTopic or keyword help page.uKEYWORDuTOPICu)<big><big><strong>%s</strong></big></big>u#ffffffu#7799eeu
<pre>%s</pre>u#ee77aacSsd||fS(Nu<a href="topic?key=%s">%s</a>((uname((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	bltinlinkc	su7_url_handler.<locals>.html_topicpage.<locals>.bltinlinkuRelated help topics: u%s %su(
uiouStringIOuHelperu	_gettopicukeywordsuheadingumarkupu
bigsectionusortedusplitumulticolumnusectionujoin(utopicubufuhtmlhelpucontentsuxrefsutitleuheadingu	bltinlink(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_topicpageR	s&		
u$_url_handler.<locals>.html_topicpagecsat|dd�}|dkr9|dkr9td��nt|�}�j||�}||fS(Nu	forceloadiuNoneucould not find object(ulocateuNoneu
ValueErrorudescribeudocument(uurluobjutitleucontent(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyuhtml_getobjl	su!_url_handler.<locals>.html_getobjcsp�jddd�}dj�fdd�tt|�|�D��}|�j|dd|�}d||fS(	Nu,<big><big><strong>Error</strong></big></big>u#ffffffu#7799eeu<br>c3s|]}�j|�VqdS(N(uescape(u.0uline(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu	<genexpr>x	su3_url_handler.<locals>.html_error.<locals>.<genexpr>u#bb0000u
Error - %s(uheadingujoinuformat_exception_onlyutypeu
bigsection(uurluexcuheadingucontents(uhtml(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
html_errort	s
u _url_handler.<locals>.html_errorcs|}|jd�r(|dd�}ny�|dkrI��\}}ny|dkrg��\}}n[|dkr���\}}n=d|kr�|jd�\}}}|d	kr��|�\}}q�|d
kr��|�\}}q�|dkr7y�|�\}}Wq�tk
r3�|�\}}Yq�Xq�|dkr�|dkra��\}}q�y�|�\}}Wq�tk
r��|�\}}Yq�Xq�td
��n�|�\}}Wn:tk
r�}z�||�\}}WYdd}~XnX�j||�S(uGenerate an HTML page for url.u.htmlNiuuindexutopicsukeywordsu=u
search?keyugetfile?keyu	topic?keyuget?keyu
bad pydoc urli����(uuindex(uuindex(uendswithu	partitionu
ValueErroru	Exceptionupage(uurlucomplete_urlutitleucontentuopu_uexc(	uhtmlu
html_erroruhtml_getfileuhtml_getobju
html_indexu
html_keywordsuhtml_searchuhtml_topicpageuhtml_topics(u*/opt/alt/python33/lib64/python3.3/pydoc.pyu
get_html_page~	sB

(u#_url_handler.<locals>.get_html_pageu/iNutext/cssuu	text/htmlu"unknown content type %r for url %s(uHTMLDocu
startswithuosupathudirnameurealpathu__file__ujoinuopenu	readlinesu	TypeError(uurlucontent_typeu_HTMLDocu
get_html_pageu	path_hereucss_pathufp((
uhtmlu
html_erroruhtml_getfileuhtml_getobju
html_indexu
html_keywordsuhtml_navbaruhtml_searchuhtml_topicpageuhtml_topicsu*/opt/alt/python33/lib64/python3.3/pydoc.pyu_url_handler�s,		

**
u_url_handleruopen_browsercCs-ddl}tt|�}|jr5t|j�dS|jr)d}|r]|j|j�nz�ytd|j�t|�x^|jr�td�}|j	�}|dkr�Pq�|dkr�|j|j�q�t|�q�WWnt
tfk
rt�YnXWd|jr%|j�td�nXndS(	u�Start the enhanced pydoc Web server and open a Web browser.

    Use port '0' to start the server on an arbitrary port.
    Set open_browser to False to suppress opening a browser.
    iNu"Server commands: [b]rowser, [q]uituServer ready atuserver> uqubuServer stopped(
u
webbrowseru
_start_serveru_url_handleruerroruprintuservinguopenuurluinputuloweruKeyboardInterruptuEOFErrorustop(uportuopen_browseru
webbrowseruserverthreaduserver_help_msgucmd((u*/opt/alt/python33/lib64/python3.3/pydoc.pyubrowse�	s2	
	
	
ubrowsecCs%t|t�o$|jtj�dkS(Ni(u
isinstanceustrufinduosusep(ux((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuispath�	suispathcCs�ddl}Gdd�dt�}dtjkr�tjjtjd�}|tjkrltjj|�ntjjdd�ny�|jtjdd�d�\}}d}d}d}d}xy|D]q\}	}
|	d	kr�d}d}n|	d
kr
t|
�dS|	dkr%d}|
}n|	dkr�d}q�q�W|rm|dkrYd}nt
|d
|�dS|s||�nx�|D]�}t|�r�tjj|�r�td|�Pny|t|�r�tjj|�r�t|�}n|r(t|�rtjj|�rt|�q5t|�n
tj|�Wq�tk
rg}zt|�WYdd}~Xq�Xq�WWnc|j|fk
r�tjjtjjtjd��d}
tdjd|
dtj��YnXdS(u@Command-line interface (looks at sys.argv to decide what to do).iNcBs|EeZdZdS(ucli.<locals>.BadUsageN(u__name__u
__module__u__qualname__(u
__locals__((u*/opt/alt/python33/lib64/python3.3/pydoc.pyuBadUsage�	suBadUsageuu.iubk:p:wu-bu-ku-pu-wuopen_browserufile %r does not existu�pydoc - the Python documentation tool

{cmd} <name> ...
    Show text documentation on something.  <name> may be the name of a
    Python keyword, topic, function, module, or package, or a dotted
    reference to a class or function within a module or module in a
    package.  If <name> contains a '{sep}', it is used as the path to a
    Python source file to document. If name is 'keywords', 'topics',
    or 'modules', a listing of these things is displayed.

{cmd} -k <keyword>
    Search for a keyword in the synopsis lines of all available modules.

{cmd} -p <port>
    Start an HTTP server on the given port on the local machine.  Port
    number 0 can be used to get an arbitrary unused port.

{cmd} -b
    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.

{cmd} -w <name> ...
    Write out the HTML documentation for a module to a file in the current
    directory.  If <name> contains a '{sep}', it is treated as a filename; if
    it names a directory, documentation is written for all the contents.
ucmdusepFT(ugetoptu	ExceptionusysupathuosudirnameuargvuremoveuinsertuFalseuNoneuTrueuaproposubrowseuispathuexistsuprintuisfileu
importfileuisdiru	writedocsuwritedocuhelpuErrorDuringImportuerrorusplitextubasenameuformatusep(ugetoptuBadUsageu	scriptdiruoptsuargsuwritingustart_serveruopen_browseruportuoptuvaluarguvalueucmd((u*/opt/alt/python33/lib64/python3.3/pydoc.pyucli�	sd%	
	
		


%)ucliu__main__(Uu__doc__u__all__u
__author__u__date__u__credits__ubuiltinsuimpuimportlib.machineryu	importlibuinspectuiouosupkgutiluplatformureusysutimeutokenizeuwarningsucollectionsudequeureprlibuRepru	tracebacku
extract_tbuformat_exception_onlyupathdirsugetdocusplitdocu	classnameuisdataureplaceucramucompileu
IGNORECASEu_re_stripidustripidu_is_some_methodu
allmethodsu_split_listuNoneuvisiblenameuclassify_class_attrsu	ispackageusource_synopsisusynopsisu	ExceptionuErrorDuringImportu
importfileu
safeimportuDocuHTMLRepruHTMLDocuTextRepruTextDocu
_PlainTextDocupagerugetpageruplainu	pipepageru
tempfilepageruttypageru
plainpagerudescribeulocateutextu	plaintextuhtmluresolveu
render_docudocuwritedocu	writedocsuHelperuhelpuScanneru
ModuleScanneruaproposu
_start_serveru_url_handleruTrueubrowseuispathucliu__name__(((u*/opt/alt/python33/lib64/python3.3/pydoc.pyu<module>#s�	
	
$
0=*��+ �_	&			
��	<��%V