Your IP : 18.221.7.93


Current Path : /opt/alt/python313/lib64/python3.13/__pycache__/
Upload File :
Current File : //opt/alt/python313/lib64/python3.13/__pycache__/pydoc.cpython-313.pyc

�

*}g�����SrS/rSrSrSrSSKrSSKrSSKrSSK	rSSK
rSSKrSSKrSSK
r
SSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKrSSKJr SSKJr SS	KJr SS
KJ r J!r!J"r"J#r#J$r$J%r% \ r&\"r'\#r(\$r)\%r*Sr+Sr,S
r-Sr.Sr/Sr0Sr1Sr2Sr3Sr4Sr5Sr6Sr7\Rp"S\Rr5r:Sr;Sr<Sr=Sr>\?"\R�5rASKSjrBSrCSrDS rES!rF04S"jrG"S#S$\H5rIS%rJS04S&jrK"S'S(5rL"S)S*\5rM"S+S,\L5rN"S-S.\5rO"S/S0\L5rP"S1S2\P5rQSLS3jqRS4rSSMS5jrT\P"5rU\Q"5rV\N"5rWSMS6jrXSNS7jrYSOS8jrZSMS9jr[SPS:jr\"S;S<5r]\]"5r^"S=S>5r_S?r`S@raSQSAjrbSMSBSCSD.SEjjrcSFrdSGreSHrfSIrg\hSJ:Xa\g"5 gg)RaGenerate 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_only)�	get_pager�plain�
pipe_pager�plain_pager�tempfile_pager�	tty_pagerc�h�/n/n[RH�n[RRU=(d S5n[RR	U5nX1;dMQ[RRU5(dMwUR
U5 UR
U5 M� U$)zAConvert sys.path into a list of absolute, existing, unique paths.�.)�sys�path�os�abspath�normcase�isdir�append)�dirs�normdirs�dir�normdirs    �,/opt/alt/python313/lib64/python3.13/pydoc.py�pathdirsr^s{��
�D��H��x�x���g�g�o�o�c�j�S�)���'�'�"�"�3�'���"�r�w�w�}�}�S�'9�'9��K�K����O�O�G�$���K�c��[RRUR5nUcgURRS5SSHn[
X5nM [R"U5(dgU$)Nr���)	r�modules�get�
__module__�__qualname__�split�getattr�inspect�isclass)�func�cls�names   r�
_findclassr*jsc��

�+�+�/�/�$�/�/�
*�C�
�{���!�!�'�'��,�S�b�1���c� ��2��?�?�3�����Jrc��[R"U5(arURRnURn[R
"U5(a'[
[
X!S5S5URLaUnGO�URnGO�[R"U5(a+URn[U5nUb[
X15ULagGOl[R"U5(acURnURn[R
"U5(a#URS-U-UR:XaUnO�URnO�[U[5(a4URn[UR5nUb[
X15ULagO�[R"U5(d "U5(anURnUR"n[
X15ULag[R$"U5(a+[
USS5n[U[&5(a	X;aXA$OgUR(Hn[+[
XQ55nUcMUs $ g![,a M1f=f)N�__func__r�	__slots__)r%�ismethodr,�__name__�__self__r&r$�	__class__�
isfunctionr*�	isbuiltinr"�
isinstance�property�fget�ismethoddescriptor�isdatadescriptor�__objclass__�ismemberdescriptor�dict�__mro__�
_getowndoc�AttributeError)�objr)�selfr(�slots�base�docs       r�_finddocrDts���������|�|�$�$���|�|���O�O�D�!�!��G�D��-�z�:�c�l�l�J��C��.�.�C�	�	�	�C�	 �	 ��|�|����o���;�'�#�,�C�7��8�	�	�	�3�	�	��|�|���|�|���O�O�D�!�!�����#�d�*�c�.>�.>�>��C��.�.�C�	�C��	"�	"��|�|������"���;�'�#�,�C�7��8�	�	#�	#�C�	(�	(�G�,D�,D�S�,I�,I��|�|�������3��S�(���%�%�c�*�*��C��d�3�E��%��&�&�4�=��{�"�������	��W�T�0�1�C��?��J�
���	�	��	�s�I0�0
I>�=I>c���[RUS5nUcgU[La0[U5Rn[	U[
5(aX!:XagU$![a gf=f)zQGet the documentation string for an object if it is not
inherited from its class.�__doc__N)�object�__getattribute__�typerFr4�strr>)r?rC�typedocs   rr=r=�sb��
��%�%�c�9�5���;���d�?��3�i�'�'�G��'�3�'�'�G�N���
������s�A�8A�A�
A$�#A$c��[U5nUc[U5n[	U[
5(dg[R"U5$![[4a gf=f)z�Get the documentation string for an object.

All tabs are expanded to spaces.  To clean up docstrings that are
indented to line up with blocks of code, any whitespace than can be
uniformly removed from the second line onwards is removed.N)r=rDr>�	TypeErrorr4rJr%�cleandoc)rGrCs  r�_getdocrO�s^���V�
�C�
�{�	��6�"�C��c�3�������C� � ��	�	�*�	��	�s�A�A�Ac���[U5=(d [R"U5nU=(a& [R"SSUR55=(d S$)z-Get the doc string or comments for an object.z^ *
�)rOr%�getcomments�re�sub�rstrip)rG�results  r�getdocrW�s>��
�V�_�
;�� 3� 3�F� ;�F��:�b�f�f�W�b�&�-�-�/�:�@�b�@rc��UR5RS5n[U5S:XaUSS4$[U5S:�a1USR5(dUSSR	USS54$SSR	U54$)z>Split a doc string into a synopsis line (if any) and the rest.�
�rrQ�N)�stripr#�lenrU�join)rC�liness  r�splitdocr`�s~���I�I�K���d�#�E�
�5�z�Q���Q�x��|��	�U��q���q����!2�!2��Q�x����5���9�-�-�-�
�t�y�y����rc��[R"U5nU(a2[USS5nUS:waS[U5-
OSnUR	US9$g![
[4ak [USS5nU(aRUSSS:XaS	USS-n[US
S5b3[R"SU5nU(aS	XER5S-nUs$f=f)Nr/rQ�<lambda>�P)�	max_width�__text_signature__r[z($�(r0z)\(\w+(?:(?=\))|,\s*(?:/(?:(?=\))|,\s*))?))
r%�	signaturer$r]�format�
ValueErrorrMrS�match�end)rGrgr)rd�argspec�ms      r�_getargspecrn�s�����%�%�f�-�	���6�:�r�2�D�,0�J�,>��c�$�i��D�I��#�#�i�#�8�8�	� ��
�	�"�
��&�"6��=����r��{�d�"������+���v�z�4�0�<��H�H�I�7�S���!�G�E�E�G�H�$5�5�G���
�s�AA�A8C�
Cc�b�URnURU:waURS-U-nU$)z@Get a class name and qualify it with a module name if necessary.r)r/r!�rG�modnamer)s   r�	classnamerr�s3���?�?�D�
���G�#�� � �3�&��-���Krc���SUR;aBURRS5SnURU:waURS-U-$U$URU:waUR$g)z[Get a name of the enclosing class (qualified it with a module name
if necessary) or module.rrN)r"�
rpartitionr!rps   r�
parentnameru�su���f�!�!�!��"�"�-�-�c�2�1�5������'��$�$�s�*�T�1�1��K�����'��$�$�$�(rc�Z�[R"U5=(d� [R"U5=(dm [R"U5=(dP [R"U5=(d3 [R
"U5=(d [R"U5(+$)z>Check if an object is of a type that probably means it's data.)r%�ismoduler&�	isroutine�isframe�istraceback�iscode)rGs r�isdatar|�sy��� � ��(�F�G�O�O�F�,C�F��!�!�&�)�F�-4�_�_�V�-D�F��#�#�F�+�F�/6�~�~�f�/E�G�Grc�|�U(a4USRURUS55nUSSnU(aM4U$)z/Do a series of global replacements on a string.rZrr[N)r^r#)�text�pairss  r�replacer�s=��
��Q�x�}�}�T�Z�Z��a��1�2���a�b�	���%��Krc��[U5U:�a>[SUS-
S-5n[SUS-
U-
5nUSUS-U[U5U-
S-$U$)zCOmit part of a string if needed to make it fit in a maximum length.r�r[N�...)r]�max)r~�maxlen�pre�posts    r�cramr�	s`��
�4�y�6���!�f�Q�h��]�#���1�f�Q�h�s�l�#���D�S�z�E�!�D��T��4���$9�9�9��Krz at 0x[0-9a-f]{6,16}(>+)$c�.�[RSU5$)z>Remove the hexadecimal id from a Python object representation.z\1)�_re_stripidrT)r~s r�stripidr�s���?�?�5�$�'�'rc���[R"U5(ag[R"U5(a3[USS5n[R"U5=(d USL(+$g)zc
Returns True if fn is a bound method, regardless of whether
fn was implemented in Python or in C.
Tr0NF)r%r.r3r$rw)�fnr@s  r�_is_bound_methodr�sW��
��������������r�:�t�,���$�$�T�*�<�t�t�|�=�=�rc��0n[R"U[R5H	up#SX'M URHnUR	[U55 M UR
5Hn[X5X'M U$�NrZ)r%�
getmembersrx�	__bases__�update�
allmethods�keysr$)�cl�methods�key�valuerBs     rr�r�$sn���G��(�(��W�->�->�?�
�����@��������z�$�'�(���|�|�~���r�'�����Nrc��/n/nUH4nU"U5(aURU5 M#URU5 M6 X#4$)z�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)])
�r)�s�	predicate�yes�no�xs     r�_split_listr�.s@��
�C�	�B�
���Q�<�<��J�J�q�M��I�I�a�L�	�
�7�Nrc�n�US;agURS5(aURS5(agURS5(a[US5(agU[La4U[;a*[[
X S5[R5(ag	UbX;$URS5(+$)
z3Decide whether to show documentation on a variable.>rF�__date__�__file__r/�__path__�__spec__r-�
__author__�
__cached__�
__loader__r!�__credits__�__package__�__version__�__builtins__r"�__firstlineno__�__static_attributes__r�__rZ�_�_fieldsTNF)�
startswith�endswith�hasattr�
__future__�_future_feature_namesr4r$�_Feature)r)�allr?s   r�visiblenamer�As����<�<�
����t������t�!4�!4�Q����s�����Y� 7� 7��
�*���)>�!>��g�c��.�
�0C�0C�D�D��
���{���?�?�3�'�'�'rc�$�/n[R"U5Hsup#pE[R"U5(a'Sn[U[5(aUR
cSnOUS:Xa[
U5(aSnURX#XE45 Mu U$)zUWrap inspect.classify_class_attrs, with fixup for data descriptors and bound methods.�data descriptor�readonly property�method�
static method)r%�classify_class_attrsr8r4r5�fsetr�r)rG�resultsr)�kindr(r�s      rr�r�Zs����G�$+�$@�$@��$H� ��S��#�#�E�*�*�$�D��%��*�*�u�z�z�/A�*���
�X�
�"2�5�"9�"9�"�D�����C�/�0�%I��Nrc	��^�[US/5n[U5VVs0sHup4XC[U5-
_M snnmU4SjnUR	US9 gs snnf![a 0mN*f=f)zGSort the attrs list in-place by _fields and then alphabetically by namer�c�8>�TRUSS5US4$�Nr)r )�attr�field_orders �r�<lambda>�!sort_attributes.<locals>.<lambda>ps���K�O�O�D��G�Q�7��a��Ar�r�N)r$�	enumerater]rM�sort)�attrsrG�fields�ir)�keyfuncr�s      @r�sort_attributesr�gsp����V�Y��
+�F��=F�v�=N�O�=N�	��t��F��m�+�=N�O��B�G�	�J�J�7�J���	P�������s!�A�A�A�A�A'�&A'c� �[R"S[SS9 [RRU5(aPSHJn[RR
[RRUSU-55(dMJ g g)z3Guess whether a path refers to a package directory.z,The pydoc.ispackage() function is deprecatedr[)�
stacklevel)z.pyz.pyc�__init__TF)�warnings�warn�DeprecationWarningrrr�isfiler^)r�exts  r�	ispackager�usb���M�M�@�$��4�	�w�w�}�}�T���"�C��w�w�~�~�b�g�g�l�l�4��c�1A�B�C�C��#�rc��UR5nUSSS:XdUR5(d:UR5nU(dO"USSS:XaM#UR5(dM:UR5nUSSS:XaUSSnUSSS:Xa{USSnUSSS:XaUSSnUR5(d/UR5nU(dOUR5(dM/URS5S	R5nU$SnU$)
NrZ�#�zr"""r��"""r�\r)�readliner\r#)�file�linerVs   r�source_synopsisr�s����=�=�?�D�
�r��(�c�/�������}�}����U��r��(�c�/�������:�:�<�D��B�Q�x�6��$�q�r�(�4��B�Q�x�5���A�B�x�����9���T�#�2�Y�d��*�*�,�,��=�=�?�D����*�*�,�,����E�"�1�%�+�+�-���M��&��Mrc��[R"U5RnURUS5up4UbX2:GaeUR	[[RR55(a[RRnOTUR	[[RR55(a[RRnOSnUc.[R"U5nU [U5nSSS5 O�U"SU5n[R R#SUUS9n[R$R'U5n	[(R*S	U	R,(aU	R,R/5SOSnX$4X'U$![a gf=f!,(df   N%=f! g=f)z.Get the one-line summary out of a module file.�NNN�__temp__��loaderr)r�stat�st_mtimer r��tuple�	importlib�	machinery�BYTECODE_SUFFIXES�SourcelessFileLoader�EXTENSION_SUFFIXES�ExtensionFileLoader�tokenize�open�OSErrorr��util�spec_from_file_location�
_bootstrap�_loadrrrF�
splitlines)
�filename�cache�mtime�
lastupdaterV�
loader_clsr�r��spec�modules
          r�synopsisr�sx���G�G�H��&�&�E����8�\�:��J���Z�/����U�9�#6�#6�#H�#H�I�J�J�"�,�,�A�A�J�
�
�
�u�Y�%8�%8�%K�%K�L�
M�
M�"�,�,�@�@�J��J���
��}�}�X�.��
�(��.���� �
�H�5�F��>�>�9�9�*�h�AG�:�I�D�
�"�-�-�3�3�D�9�����J�'�7=�~�~�V�^�^�.�.�0��3�4�F� �/����M��)�
��
�����
��s*�(F%�F5�>G�%
F2�1F2�5
G�G
c�$�\rSrSrSrSrSrSrg)�ErrorDuringImporti�zEErrors that occurred while trying to import something to document it.c��[U[5(d?[U[5(de[U5UlX lURUlO0[R"S[5 UuUlUlUlXlg)NzCA tuple value for exc_info is deprecated, use an exception instance)r4r��
BaseExceptionrI�excr��
__traceback__�tbr�r�r�r�)r@r��exc_infos   rr��ErrorDuringImport.__init__�sj���(�E�*�*��h�
�6�6�6�6��H�~�D�H�!�J��,�,�D�G��M�M�_�,�
.�-5�)�D�H�d�j�$�'� �
rc�r�URRnSUR<SU<SUR<3$)Nzproblem in � - z: )rr/r�r�)r@rs  r�__str__�ErrorDuringImport.__str__�s&���h�h����+/�=�=�#�t�z�z�J�Jr)rr�r	r�N)r/r!r"r�rFr�rr��rrrr�s��O�!�Krrc�|�[RRn[US5nXR	[U55:HnSSS5 [RRU5n[RRU5upVW(a [RRXP5nO[RRXP5n[RRXPUS9n[RRU5$!,(df   N�=f![ an	[#X	5eSn	A	ff=f)z<Import a Python source file or compiled file given its path.�rbNr�)r�r��MAGIC_NUMBERr��readr]rr�basename�splitext�_bootstrap_externalr��SourceFileLoaderr�r�r�rr)
r�magicr��is_bytecoder�r)r�r�r�errs
          r�
importfiler�s����N�N�'�'�E�	
�d�D�	�T��y�y��U��4�4��
��w�w����%�H���� � ��*�I�D���.�.�C�C�D�O���.�.�?�?��K���>�>�1�1�$�V�1�L�D�+��#�#�)�)�$�/�/�
�	���+���*�*��+�s#�D�1D!�
D�!
D;�+D6�6D;c���U(a�U[R;a�U[R;am[RVs/sHo3RUS-5(dMUPM! nnU/U-H)n[RUX%'[RU	M+ [R
"U5nU$s snf![a�nU[R;a'[[RURU5e[U5[La[URU5e[U[5(aURU:XaSnAg[X5eSnAff=f)a�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).rN)rr�builtin_module_namesr�r��
import_modulerrr�rI�SyntaxErrorr�r4�ImportErrorr))r�	forceloadr�rm�subsr�rrs        r�
safeimportr$�s��/�
�����,��3�3�3�3�$'�;�;�K�;�a�,�,�t�c�z�2J��;��K� �6�D�=�C�!$���S�!1�E�J����C�(�)��(�(��.���M��)L���
/��3�;�;��#�C�K�K��$5�$>�$>��D�D�
�#�Y�+�
%�#�C�L�L�#�6�6�
��[�
)�
)�c�h�h�$�.>��$�D�.�.��
/�s8�AB;�B6�#B6�)AB;�6B;�;
E"�BE�E�E"c���\rSrSr\R
R
SS\RSS-5r	SSjr
SSjr\=r=r
=r=r=rr\R&"S54S	jrS
rg)�Doci�
PYTHONDOCSz%https://docs.python.org/%d.%d/libraryNr[c��X4U-n[R"U5(aUR"U6$[R"U5(aUR"U6$[R
"U5(aUR"U6$[R"U5(aUR"U6$UR"U6$![a NEf=f)z%Generate documentation for an object.)r%rw�	docmoduler&�docclassrx�
docroutiner>r8�docdata�docother)r@rGr)�argss    r�document�Doc.documents����~��$��
	�����'�'�����0E�)E����v�&�&�t�}�}�d�/C�(C�� � ��(�(����$�1G�*G�(��#�#�F�+�+�D�L�L�$�4G�-G��}�}�d�#�#���	��	�s�)C�)C�)C�
C
�C
c�|�SU=(a S[U5-<S[U5R<3n[U5e)z+Raise an exception for unimplemented types.z!don't know how to document object� z	 of type )�reprrIr/rM)r@rGr)r.�messages     r�fail�Doc.fails6��
�%�S�4��:�%�%�t�F�|�'<�'<�>���� � r�stdlibc��[R"U5n[RRSUR5n[RRU5n[U[[55(a�URS;dJURU5(a�UR[RRUS55(d�URS;a�URS5(a;SRURS5URR!55nU$[RRXARR!5S	-5nU$S
nU$![a SnGNrf=f)z*Return the location of module docs or None�
(built-in)r')	�errno�
exceptions�gc�marshal�posix�signalr�_thread�	zipimportz
site-packages)z	xml.etreeztest.test_pydoc.pydoc_mod)zhttp://zhttps://z
{}/{}.html�/�.htmlN)r%�
getabsfilerMr�environr r'rrr4rIr/r�r^rhrU�lower)r@rG�basedirr��doclocs     r�	getdocloc�
Doc.getdocloc&s3��	 ��%�%�f�-�D�������d�o�o�>���'�'�"�"�7�+���v�t�B�x�(�(�
�_�_�!9�9��o�o�g�&�&��/�/�"�'�'�,�,�w��"H�I�I��O�O�#M�M�� � �!8�9�9�%�,�,�V�]�]�3�-?����AV�AV�AX�Y��
�
������f�o�o�.C�.C�.E��.O�P���
��F��
��'�	 ��D�	 �s�E;�;F�
Fr�N)r/r!r"r�rrEr r�version_infor'r/r5r)r*r+r-�docpropertyr,�	sysconfig�get_pathrIr�rrrr&r&sm�������� G�"%�"2�"2�2�A�"6�!7�8�J�$� !�LP�O�I�O��O�:�O��O�;��(1�(:�(:�8�(D�rr&c�D�\rSrSrSrSrSrSrSrSr	\	r
Sr\	rS	r
g
)�HTMLRepriBzBClass for safely making an HTML representation of a Python object.c�v�[R"U5 S=UlUlSUlS=UlUlg�N��
�d�rr��maxlist�maxtuple�maxdict�	maxstring�maxother�r@s rr��HTMLRepr.__init__D�1���
�
�d��')�)���t�}����),�,����rc	�$�[USSSSSS5$)N�&z&amp;�<z&lt;�>z&gt;)r��r@r~s  r�escape�HTMLRepr.escapeJs���t�S�'�3���V�D�Drc�.�[R"X5$rK)rr3�r@rGs  rr3�
HTMLRepr.reprMs���y�y��&�&rc	�P�[[U5S5(aVSSR[U5RR	55-n[X5(a[X5"X5$UR
[[[U55UR55$�Nr/�repr_r�)r�rIr^r/r#r$rer�r�r3r\�r@r��level�
methodnames    r�repr1�HTMLRepr.repr1Psw���4��7�J�'�'� �3�8�8�D��G�,<�,<�,B�,B�,D�#E�E�J��t�(�(��t�0��:�:��{�{�4���Q�� 0�$�-�-�@�A�Arc��[XR5n[U5nSU;a1S[USS5;a SUS-UR	U5-US-$[
R"SSUR	U55$)Nr��\\rQ�rrz-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z<span class="repr">\1</span>)r�r[r3r�rerSrT�r@r�rn�test�testreprs     r�repr_string�HTMLRepr.repr_stringWs{���A�~�~�&����:���4�<�D���%��(D�D���!��$�t�{�{�4�'8�8�8�A�;�F�F��v�v�F�5��k�k�(�+�-�	-rc	���UR[[[U55UR55$! URSUR
R-5s$=f�Nz
<%s instance>)rer�r�r3r[r1r/�r@r�rns   r�
repr_instance�HTMLRepr.repr_instancedsQ��	G��;�;�t�G�D��G�$4�d�n�n�E�F�F��	G��;�;�����1E�1E�E�F�F�s	�69�*A%�rZrXr\r[rYN)r/r!r"r�rFr�rer3rprx�repr_strr}�repr_unicoder�rrrrQrQBs4��L�-�E�'�B�	-��H�G��LrrQc�(�\rSrSrSr\"5r\Rr\RrSr	SSjr
SSjrSrSr
S	rS
rSrSrS
rSrSrSrS0004SjrSSjrSSjrSS004SjrSrSS000SS4SjrSSjr\rSSjrSSjrSr g) �HTMLDocilz'Formatter class for HTML documentation.c��SU<SU<S3$)�Format an HTML page.zN<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Python: z</title>
</head><body>
z
</body></html>r)r@�title�contentss   r�page�HTMLDoc.pageus���H�&�	&rc�*�SU<SU=(d S<S3$)zFormat a page heading.zU
<table class="heading">
<tr class="heading-text decor">
<td class="title">&nbsp;<br>z</td>
<td class="extra">�&nbsp;z</td></tr></table>
    r)r@r��extrass   r�heading�HTMLDoc.heading�s���&�$�H�$�&�	&rNc��UcSSU--S-nSU<SU<S3nU(aUSU<SU<S	U<S
U<SU<S3-nOUSU<S
U<SU<S3-nUSU--$)z Format a section with a heading.z<span class="code">r�z</span>z-<p>
<table class="section">
<tr class="decor zD-decor heading-text">
<td class="section-title" colspan=3>&nbsp;<br>z</td></tr>
    z
<tr><td class="decor z-decor" rowspan=2>z</td>
<td class="decor z-decor" colspan=2>z</td></tr>
<tr><td>�</td>z-decor">z	</td><td>z.
<td class="singlecolumn">%s</td></tr></table>r)	r@r�r(r��width�prelude�
marginalia�gaprVs	         r�section�HTMLDoc.section�s{����.��E�1A�A�I�M�J��
��	��
���:�s�G�S�:�:�F�
�8;�Z��N�N�F��I�H�T�T�Trc�2�SU-nUR"U/UQ76$)z$Format a section with a big heading.z&<strong class="bigsection">%s</strong>)r�)r@r�r.s   r�
bigsection�HTMLDoc.bigsection�s ��8�5�@���|�|�E�)�D�)�)rc�f�URUR55n[USSSSSSSS5	$)z!Format literal preformatted text.�

z
 
r2r�rY�<br>
)re�
expandtabsr�rds  r�	preformat�HTMLDoc.preformat�s7���{�{�4�?�?�,�-���t�V�W�f�g� �(�D�(�<�	<rc���Sn[U5S-S-n[S5HGnUS-n[XE-XE-U-5H#nU[U5:dMX2"X5-S-nM% US-nMI SU-$)z0Format a list of items into a multi-column list.rQr�r�z<td class="multicolumn">r�r�z<table><tr>%s</tr></table>)r]�range)r@�listrhrV�rows�colr�s       r�multicolumn�HTMLDoc.multicolumn�s������D�	�A�
�!�#����8�C��8�8�F��4�8�T�X�d�]�3���s�4�y�=�#�f�T�W�o�5��@�F�4��g�%�F��,�f�4�4rc��SU-$)Nz<span class="grey">%s</span>rrds  r�grey�HTMLDoc.grey�s
��!?�$�!F�Frc�@�UHnX;dM
SX1<SU<S3s $ U$)z:Make a link for an identifier, given name-to-URL mappings.�	<a href="�">�</a>r)r@r)�dictsr;s    r�namelink�HTMLDoc.namelink�s%���D��|�04�
�D�A�A���rc	��UR[RRUR5pC[XC5(a0[
XC5ULa"SUR<SU<S[X5<S3$[X5$)zMake a link for a class.r��.html#r�r�)r/rrr r!r�r$rr)r@rGrqr)rs     r�	classlink�HTMLDoc.classlink�s^�����������8I�8I�(J�f��6� � �W�V�%:�f�%D�����y��'A�C�
C���)�)rc���SnUR[RRUR5pT[XT5(a�[
XT5ULawSUR;aHURRS5SnURU:waUR<SU<3nO%SU-nOURU:waSUR-nU(aSU<S[X5<S	3$[X5$)
z.Make a link for the enclosing class or module.Nrrr�z#%s�%s.htmlr�r�r�)
r/rrr r!r�r$r"rtru)r@rGrq�linkr)rs      r�
parentlink�HTMLDoc.parentlink�s��������������8I�8I�(J�f��6� � �W�V�%:�f�%D��f�)�)�)��*�*�5�5�c�:�1�=���$�$��/�+1�?�?�D�A�D� �4�<�D��$�$��/�$�v���6�D��,0�*�V�2M�N�N��f�.�.rc�@�SUR<SUR<S3$)zMake a link for a module.r��.html">r�)r/rhs  r�
modulelink�HTMLDoc.modulelink�s��-3�_�_�f�o�o�N�Nrc��Uup#pEU(aURU5$U(aU<SU<S3nOSU-nU(aSU-nOUnSU<SU<S3$)z;Make a link for a module or package to display in an index.rrCr�z"<strong>%s</strong>&nbsp;(package)r�r�r�)r�)r@�
modpkginfor)rr��shadowed�urlr~s        r�
modpkglink�HTMLDoc.modpkglink�sR��*4�'��I���9�9�T�?�"��"&��-�C��d�"�C��7�$�>�D��D��(+�T�2�2rc��SU<SU<S3$)zMake a link to source file.z<a href="file:r�r�r)r@r�rs   r�filelink�HTMLDoc.filelink�s
��-0�$�7�7rc�$�U=(d URn/nSn[R"S5nURX5=n	(Ga�U	R	5up�URU"XU
55 U	R
5up�p�nnU
(a4U"U5RSS5nURSU<SU<S35 GOU(a/S[U5-nURSU<SU"U5<S35 O�U(a/S	[U5-nURSU<SU"U5<S35 O�U(aEXUS
-S:Xa%URSURUU5-5 OdURS
U-5 OOXUS
-S:Xa#URURUXSU55 O!URURUU55 UnURX5=n	(aGM�URU"XS55 SRU5$)z{Mark up some plain text, given a context of symbols to look for.
Each context dictionary maps object names to anchor names.rzJ\b((http|https|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))�"z&quot;r�r�r�z(https://www.rfc-editor.org/rfc/rfc%d.txtz!https://peps.python.org/pep-%04d/rZrfzself.zself.<strong>%s</strong>NrQ)rerS�compile�search�spanr�groupsr��intr�r^)r@r~re�funcs�classesr�r��here�patternrj�startrkr��scheme�rfc�pep�selfdotr)r�s                   r�markup�HTMLDoc.markup�s����&�4�;�;�������*�*�3�4���~�~�d�1�1�e�1�����J�E��N�N�6�$�E�"2�3�4�38�<�<�>�0�C��7�D���S�k�)�)�#�x�8������S�A�B��@�3�s�8�K������V�C�[�I�J��9�C��H�D������V�C�[�I�J���C��E�?�c�)��N�N�7�T�]�]�4��-I�#I�J��N�N�#=��#D�E��#�a�%��C�'����t�}�}�T�7�7�K�L����t�}�}�T�7�;�<��D�3�~�~�d�1�1�e�1�1�4	���v�d�5�k�*�+��w�w�w��rc��SnUH�n[U[5(auUupgUS-nX@RXb5-nU(aKXs4:waE/nUH#n	URURX�55 M% US-SR	U5-S-nUS-nM�[U[
5(dM�USUR
XRW5--nM� SU-$)	zAProduce HTML for a class tree as given by inspect.getclasstree().rQz<dt class="heading-text">rf�, �)z
</dt>z
<dd>
%s</dd>
z
<dl>
%s</dl>
)r4r�r�rr^r��
formattree)
r@�treerq�parentrV�entry�c�bases�parentsrBs
          rr��HTMLDoc.formattrees������E��%��'�'� ����"=�=���.�.��"<�<���U�i�/� �G� %�����t�~�~�d�'D�E�!&�#�c�\�D�I�I�g�,>�>��D�F��)�+���E�4�(�(��"3�d�o�o��A�7'�#'�'���!�6�)�)rc
��^�URnURnURS5n/n[	[U5S-
5H4nUR
SSRUSUS-5<SXh<S35 M6 SRXvSS-5n	SU	-n
[R"U5n[RRU5nTRX�5n
/n[US
5(a][!UR"5nUSSS:XaUSSS
:XaUSSR%5nUR
STR'U5-5 [US5(a3UR
TR'[!UR(555 U(aU
SSRU5--n
TR+U5nUbS[-5-nOSnTR/U
SU
-U-5n[R0"U[R25n/0nn[R0"U[R45H`unnUc$[R6"U5=(d UULdM-[9UXQ5(dM@UR
UU45 SU-=UU'UU'Mb UH�unnUR:H�nURUR<nn[>R@RCU5nUU:wdMBU(dMK[UU5(dM^[EUU5ULdMoUU;dMwUS-U-=UU'UU'M� M� /0nn[R0"U[RF5H�unnUc$[R6"U5=(d UULdM-[9UXQ5(dM@UR
UU45 SU-UU'[RH"U5(dMxUUUU'M� /n[R0"U[J5H,unn[9UXQ5(dMUR
UU45 M. TRM[OU5TRPUU5nU=(a SU-nUSU--n[US5(a�/n[RRT"URV5Hunnn UR
UUU S45 M URY5 TR[UTR\5n!UTR_SSU!5-nO3U(a,TR[UU4Sj5n!UTR_SSU!5-nU(a�UVVs/sHunnUPM
 n"nnTRa[Rb"U"S5U5/n!UH*unnU!R
TReUUUUU55 M, UTR_S S!S"RU!55-nU(aW/n!UH*unnU!R
TReUUUUU55 M, UTR_S#S$S"RU!55-nU(aT/n!UH'unnU!R
TReUU55 M) UTR_S%S&S'RU!55-n[US(5(aETRM[!URf5TRP5n!UTR_S)S*U!5-n[US+5(aETRM[!URh5TRP5n!UTR_S,S-U!5-nU$![a SnGN8f=f![a S	n
GN�f=fs snnf).z/Produce HTML documentation for a module object.NrrZr�z.html" class="white">r�r�!<strong class="title">%s</strong>r9r���$Revision: �$z
version %sr�z (%s)r�z-<br><a href="%(docloc)s">Module Reference</a>rQz<a href=".">index</a><br>r�r�z#-z<span class="code">%s</span>z
<p>%s</p>
r�rzPackage Contentszpkg-contentc�,>�TRUS5$r�)r�)�tr@s �rr��#HTMLDoc.docmodule.<locals>.<lambda>�s���4�?�?�1�Q�4�#8r�Modules�Classes�indexr2�	Functions�	functions�Data�datar�r��Author�authorr��Credits�credits)5r/�__all__r>r#r�r]rr^r%rD�urllib�parse�quoter�rMr�rJr�r\rer�rI�localsr�r�rwr&�	getmoduler�r�r!rrr r$rxr2r|r�rWr��pkgutil�iter_modulesr�r�r�r�r�r��getclasstreer/r�r�)#r@rGr)�mod�ignoredr��parts�linksr��
linkedname�headrr�r��info�versionrHrVrr��cdictr�r�rBrqrr��fdictr�rC�modpkgs�importer�ispkgr��	classlists#`                                  rr)�HTMLDoc.docmodule-s��������	��.�.�C��
�
�3������s�5�z�!�|�$�A��L�L����%���1��+�&���2�
3�%��X�X�e�B�C�j�0�1�
�2�Z�?��	$��%�%�f�-�D��,�,�$�$�T�*�C��}�}�S�/�H����6�=�)�)��&�,�,�-�G��s��|�1�1�g�b�c�l�c�6I�!�"�R�.�.�.�0���K�K��t�{�{�7�';�;�<��6�:�&�&��K�K����C����$8�9�:���'�D�I�I�d�O�3�3�D�����'����D�v�x�O�F��F����d�$?�(�$J�V�$S�T���$�$�V�W�-=�-=�>���R���!�,�,�V�W�_�_�E�J�C�����"�"�5�)�3�V��>��s�C�0�0��N�N�C��<�0�03�c�	�9�E�#�J��u��
F�"�J�C������#�}�}�d�o�o�W��������1���d�?�v�v�'�&�#�2F�2F��v�s�+�t�3�"�e�|�7>��7I�C�7O�O�E�#�J��t��
(�"��2�u��!�,�,�V�W�5F�5F�G�J�C�����%�%�e�,�6��6�A��s�C�0�0��L�L�#�u��.�!%���E�#�J��)�)�%�0�0��s��%��,�H���!�,�,�V�V�<�J�C���3��,�,����S�%�L�)�=��k�k�&��.�$�.�.�%��G���:�4�s�:���-�#�-�-���6�:�&�&��G�,3�,@�,@����,Q�(��'�5������u�a�8�9�-R��L�L�N��'�'�����A�H��d�o�o�"�M�8�=�=�F�
��'�'��8�:�H��d�o�o��=�(�4�4�F��3:�;�7�<�C���7�I�;����� 4� 4�Y�� B�D�I�K�H�%�
��U�����
�
�e�S�$��u� M�N�&��d�o�o��7�C�H�H�X�$6�8�8�F���H�#�
��U�����
�
�e�S�$��u� M�N�$��d�o�o��[�#�(�(�8�*<�>�>�F���H�"�
��U�����
�
�e�S� 9�:�#��d�o�o����
�
�h� 7�9�9�F��6�<�(�(��{�{�3�v�'8�'8�#9�4�>�>�J�H��d�o�o�h��(�K�K�F��6�=�)�)��{�{�3�v�'9�'9�#:�D�N�N�K�H��d�o�o�i��H�M�M�F��
��]�	��C�	���	$�#�H�	$��L<s*�]�A]�]*�]�]�]'�&]'c�F^^^^^^^^ ^!�TRnU=(d UnTRn/n	U	Rm "U 4SjS5n
U
"5m[[R
"T55n[
U5S:�aNTR5 T "S5 UH(nT "STRUTR5-5 M* T "S5 UUUUUUU U4Sjn
UUU U4SjnUUUUUUU U4S	jn[T5VVVVs/sHunnnn[UTS
9(dMUUUU4PM! nnnnn0mUH+unnnnSW-S-U-=TU'n[TU5nUTU'M- U(a�U(aUR5m!OUS
Sm![!UU!4Sj5unnT["R$LaT!["R$LaUnMdT!TLaSnOSTRT!TR5-nUS-
n['UT5 U
"SU-US5nU
"SU-US5nU
"SU-US5nU"SU-US5nU"SU-US5nU"SU-US5nU/:XdeUnU(aM�SR)U	5n	WU:XaSU<S U<S!3nOS"U<S#U<S$U<S%3nU(aM/nUH.nURTRUTR55 M0 US&S'R)U5--nSn[+T5nU(aUS(:waUTR-U5-S)-n[/T5nU(aUU=(d S-nTR1UTR2TTT5nU=(a S*U-nTR5US+U	S,U5$s snnnnf![a GN;f=f![a GMrf=f)-z.Produce HTML documentation for a class object.c�(>�\rSrSrSrU4SjrSrg)�(HTMLDoc.docclass.<locals>.HorizontalRulei�c��SUlgr���needoner]s rr��1HTMLDoc.docclass.<locals>.HorizontalRule.__init__��	�� ��rc�F>�UR(aT"S5 SUlg)Nz<hr>
rZr�r@�pushs �r�maybe�.HTMLDoc.docclass.<locals>.HorizontalRule.maybe������<�<���N� ��rrN�r/r!r"r�r�rr��rs�r�HorizontalRuler�����
!�
!�
!rrr[z&<dl><dt>Method resolution order:</dt>
z<dd>%s</dd>
�</dl>
c
�,>�[X5up1U(aVT
R5 T"U5 UH8upEpg[T
U5nT"TRXtTT	TTT
U55 T"S5 M: U$![a T"TRXtT55 N2f=f)NrY�r�rr$r/�	Exceptionr,)�msgr�r��okr)r��homeclsr�r�r��hr�mdictrrGrr@s        ��������r�spill�HTMLDoc.docclass.<locals>.spill�s����#�E�5�I�B�����
��S�	�24�.�D��Q� '��� 5���T�]�]�5��(-�w��v�w�P�Q���J�35��L��%�=��T�\�\�%�s�;�<�=�s�A.�."B�Bc�>�[X5up1U(a<TR5 T
"U5 UHupEpgT
"TRXtT	55 M  U$rK�r�rr,�r%r�r�r&r)r�r'r�r(rrr@s        ����r�spilldescriptors�*HTMLDoc.docclass.<locals>.spilldescriptors��I���#�E�5�I�B�����
��S�	�24�.�D������e�3�7�8�35��Lrc�x>�[X5up1U(a�TR5 T"U5 UH�upEpgTR[TU5UT5n[	U5n	U	(dT"SU-5 O=TR[	U5TRTT
T
5n	SU	-n	T"SU<U	<S35 T"S5 M� U$)Nz<dl><dt>%s</dl>
z <dd><span class="code">%s</span>�<dl><dt>r!rY)r�rr-r$rWr�r�)r%r�r�r&r)r�r'r�rBrCr�r�r(r)rrGrr@s          ��������r�	spilldata�#HTMLDoc.docclass.<locals>.spilldata�s����#�E�5�I�B�����
��S�	�24�.�D���=�=����)>��c�J�D� ��-�C���0�4�7�8�"�k�k�&��-����*/��%�A��@�3�F���d�C�@�A���J�35��Lr�r?r��-rc�>�USTL$�Nr[r�r��	thisclasss �rr��"HTMLDoc.docclass.<locals>.<lambda>����A�a�D�I�<Mr�defined here�inherited from %sz:<br>
z
Methods %sc��USS:H$�NrZr�r�r�s rr�r<�
��A�a�D�H�$4rzClass methods %sc��USS:H$�NrZzclass methodrrBs rr�r<�
��A�a�D�N�$:rzStatic methods %sc��USS:H$�NrZr�rrBs rr�r<�
��A�a�D�O�$;rzReadonly properties %sc��USS:H$�NrZr�rrBs rr�r<���q��t�7J�/JrzData descriptors %sc��USS:H$�NrZr�rrBs rr�r<���q��t�7H�/HrzData and other attributes %sc��USS:H$�NrZr�rrBs rr�r< ����!���rrQ�	<a name="z">class <strong>�
</strong></a>z<strong>z</strong> = <a name="z">class r��(%s)r��()r�z&<span class="code">%s<br>&nbsp;</span>r�r�)r/r�rrr%�getmror]rr�r!r�r�r$r$rM�popleftr��builtinsrGr�r^rnrerWr�r�r�)"r@rGr)rr�r�r�realnamer�r�r�mrorBr*r/r4r�r(r�r�r�r'�anchor�	inherited�tagr�r��declrlrCr(r)rr;s"`` ```                        @@@@rr*�HTMLDoc.docclass�s������?�?����x��� � ��������	!�	!��
���G�N�N�6�*�+���s�8�a�<��H�H�J��:�;����_�t�~�~�d�6<�6G�6G�(I�I�J��
��O�	�	�$	�	�	�	�&0D�F�/K�3�/K�+�T�4��e���&�1�*�$��c�5�)�/K�	�3���).�%�C��w��"%��*�s�"2�S�"8�8�E�#�J��
����-��

� &��e��*/����K�K�M�	�!�!�H�Q�K�	�*�5�2M�N��E�9��X�_�_�,��h�o�o�1M�!����f�$�$��)�D�N�N�9�;A�;L�;L�-N�N���9��C��E�6�*��,��,�e�4�6�E��,�s�2�E�:�<�E��-��3�U�;�=�E�$�%=��%C�U�%J�L�E�$�%:�S�%@�%�%H�J�E��<�s�B�E�6�8�E��B�;��;��E�C�e�F�7�7�8�$���8���h� �E��
�d�H�&�E���G������t�~�~�d�F�4E�4E�F�G���F�T�Y�Y�w�%7�7�7�E����f�%���w�$���$�+�+�g�.�.��7�D��V�n����#�)��$�C��k�k�#�t�~�~�u�g�u�E���D�>��D���|�|�E�7�H�a��=�=��a3���
��
���
��
�s0�>M8
�
M8
�N�N�
N�
N�
N �N c�H�URSURU5-5$�z)Format an argument default value as text.�=)r�r3rhs  r�formatvalue�HTMLDoc.formatvalue?s���y�y��t�y�y��0�0�1�1rc	�z�URn	U=(d U	nUcUnUcSOURS-U-n
SnSnSn
[U5(anURnX�La[USS5n
O�[R
"U5(aSUR
X�5-nO�SUR
URU5-nOv[R"U5(d[R"U5(a>URnUcSUR
X�5-nOX�LaS	UR
X�5-nOUn
[R"U
5(aZUbWU
RUR:wd U
RURS
-U	-:waURX�5nU(aSU-n[R "U5(d[R""U5(aSnOSnX):XaS
U
<SU	<S3nOcUbP[R$"Xy/5ULa6SURS-U	-<SU	<S3nSnUR'S	5(aSnOU	nS
U
<SU<SU<3nSn[R("U5(a3[+U5nU(a!U	S:XaSU-nUR,(dUSSnU(dSnUU-UR/U5-U=(a UR1SU-5-nU(aSU-$UR3[5U5UR6XEU5nU=(a SU-nSU<SU<S3$![a GNf=f) z;Produce HTML documentation for a function or method object.NrQr7Fr,� class method of %s� method of %s instance� unbound %s method� from r� from %s�async rSz
"><strong>rTz
<a href="#r�r�Tz</strong></a> = rbz$<strong>%s</strong> <em>lambda</em> rZr�(...)z$<span class="heading-text">%s</span>z<dl><dt>%s</dt></dl>
z%<dd><span class="code">%s</span></dd>r3z</dt>r!)r/r�r0r$r%r&r�r1r7�ismethodwrapperr9r>r2r!r"r��iscoroutinefunction�isasyncgenfunction�getattr_staticr�rxrn�__annotations__rer�r�rWr�)r@rGr)rr�r�r�r�r'rZr\�note�skipdocs�imfunc�imself�objclass�pname�asyncqualifierr��reallinkrlr_rCs                       rr+�HTMLDoc.docroutineCs
���?�?����x���?��G��
�"����s�:�T�A���������F�#�#��_�_�F��|� ���T�:������(�(�,�t�~�~�f�/J�J��/�$�.�.��$�$�c�3+�+���(�(��0�0��%�%�f�-�-�
D�!�.�.���:�/�$�.�.��2O�O�D��,�#�d�n�n�X�&C�C�D���F����f�%�%�'�*=�����!3�!3�3����7�#7�#7�#�#=��#H�H��O�O�F�0�E��!�E�)���'�'��/�/��*�*�6�2�2�%�N��N���>D�h�O�E����&�&�r�R�8�F�B��K�K�#�%��0�(�<�����?�?�8�,�,��D��#�����h�(�E������V�$�$�!�&�)�G��8�z�1�>��E���-�-�%�a��m�G���G���%����G�(<�<��AH��y�y�?�$�F�G�I���+�d�2�2��+�+��v�������I�C��G�A�C�G�C�15�s�;�;��u"�
��
�s�/L,�,
L:�9L:c���/nURnU(aU"SU-5 UR[U5UR5nU(aU"SU-5 U"S5 SR	U5$)z1Produce html documentation for a data descriptor.z!<dl><dt><strong>%s</strong></dt>
z&<dd><span class="code">%s</span></dd>
r!rQ)rr�rWr�r^�	r@rGr)rr�rr�rrCs	         rr,�HTMLDoc.docdata�s`�����~�~����5��<�=��k�k�&��.�$�.�.�9����:�S�@�A��Y���w�w�w��rc�V�U=(a SU-=(d SnXPRU5-$)z-Produce HTML documentation for a data object.z<strong>%s</strong> = rQ�r3)r@rGr)rr�lhss      rr-�HTMLDoc.docother�s)���6�/�$�6�<�"���Y�Y�v�&�&�&rc�6�/nUc0n[R"U/5H:upEn[SU55(aMURUSXeU;45 SX%'M< UR	5 URX0R5nURUSU5$)z2Generate an HTML index for a directory of modules.c3�^# �UH#nS[U5s=:*=(a S:*Os v� M% g7f)i�i��N)�ord��.0�chs  r�	<genexpr>� HTMLDoc.index.<locals>.<genexpr>�s$���@�4�R�F�c�"�g�/�/��/�/�4�s�+-rQrZr�)r�r��anyrr�r�r�r�)r@rr�r
rr)rr�s        rr��
HTMLDoc.index�s��������X�%,�%9�%9�3�%�%@�!�H�E��@�4�@�@�@���N�N�D�"�e�X�-=�>�?��H�N�&A�	�����#�#�G�_�_�=�����s�G�X�6�6rr�rQ)�rQNr�rKr��NNN)!r/r!r"r�rFrQ�_repr_instancer3rer�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r)r*rdr+r,rMr-r�r�rrrr�r�ls���1��Z�N����D�
�
"�
"�F�
&�&�34�19�U�**�
<�
5�G��*�/�&O�
3�8�#'�b�"�b�% �R*�&s�j%)�d�"�b�[>�z2�'+���R���d�R<�h ��K�'�

7rr�c�4�\rSrSrSrSrSrSr\rSr	Sr
g)	�TextRepri�zAClass for safely making a text representation of a Python object.c�v�[R"U5 S=UlUlSUlS=UlUlgrSrWr]s rr��TextRepr.__init__�r_rc�2�[[U5S5(aVSSR[U5RR	55-n[X5(a[X5"X5$[
[[U55UR5$rk)
r�rIr^r/r#r$r�r�r3r\rms    rrp�TextRepr.repr1�sn���4��7�J�'�'� �3�8�8�D��G�,<�,<�,B�,B�,D�#E�E�J��t�(�(��t�0��:�:��G�D��G�$�d�m�m�4�4rc��[XR5n[U5nSU;a"S[USS5;aSUS-U-US-$U$)Nr�rsrQrtr)r�r[r3r�rus     rrx�TextRepr.repr_string�sT���A�~�~�&����:���4�<�D���%��(D�D���!��$�t�+�h�q�k�9�9��rc��[[[U55UR5$! SURR
-s$=fr{)r�r�r3r[r1r/r|s   rr}�TextRepr.repr_instance�s=��	:����Q��(�$�.�.�9�9��	:�"�Q�[�[�%9�%9�9�9�s	�'*�ArN)r/r!r"r�rFr�rprxr�r}r�rrrr�r��s ��K�-�5���H�:rr�c��\rSrSrSr\"5r\RrSrSSjr	Sr
SSjrSSjrSS	jr
S
rSSjrSSjr\rSSSS
.SjjrSrg)�TextDoci�z'Formatter class for text documentation.c�2�SRSU55$)z(Format a string in bold by overstriking.rQc3�0# �UHoS-U-v� M g7f)�Nrr�s  rr��TextDoc.bold.<locals>.<genexpr>�s���5��"�D�y�2�~��s�)r^rds  r�bold�TextDoc.bold�s���w�w�5��5�5�5rc��U(dgURS5Vs/sHo2U-R5PM nnSRU5$s snf)z6Indent text by prepending a given prefix to each line.rQrY)r#rUr^)r@r~�prefixr�r_s     r�indent�TextDoc.indent�sF���B�6:�j�j��6F�G�6F�d�4�-�'�'�)�6F��G��y�y�����Hs�Ac�t�URU5R5nURU5S-U-S-$)z&Format a section with a given heading.rYr�)r�rUr�)r@r�r��clean_contentss    rr��TextDoc.section�s7�����X�.�5�5�7���y�y���$�&��7�&�@�@rNc	�@^�SnUH�n[U[5(aLUupxXT-[UT5-nU(a)X�4:wa#U4SjU5n	USSRU	5--nUS-nMd[U[5(dM{XPRUTWUS-5-nM� U$)zBRender in text a class tree as returned by inspect.getclasstree().rQc3�<># �UHn[UT5v� M g7frK�rr)r�r�rqs  �rr��%TextDoc.formattree.<locals>.<genexpr>�s����D�e��y��G�4�4�e�s�rUr�rY�    )r4r�rrr^r�r�)
r@r�rqr�r�rVr�r�r�r�s
  `       rr��TextDoc.formattree�s�������E��%��'�'� �����9�Q��+@�@���U�i�/�D�e�D�G�#�f�t�y�y��/A�&A�A�F��$����E�4�(�(��/�/��7�A�v���#8�8����
rc
��URn[[U55upVURSX%=(a SU--5n[	USS5nURU5n	U	bXpRSU	S-5-nU(aXpRSU5-n/n
[R"U[R5HQup�Uc$[R"U5=(d UULdM,[X�U5(dM?U
RX�45 MS /n
[R"U[R5HQup�Uc$[R"U5=(d UULdM,[X�U5(dM?U
RX�45 MS /n[R"U[5H*up�[X�U5(dMURX�45 M, /n[5n[US5(a�[ R""UR$5HFunnnUR'U5 U(aURUS	-5 M5URU5 MH UR)5 XpRS
SR+U55-n/n[R"U[R,5HCup�URR/US-5(dM*UU;dM2URU5 ME U(a3UR)5 XpRS
SR+U55-nU
(a�U
VVs/sHup�UPM	 nnnUR1[R2"US5U5/nU
H&up�URUR5X�U55 M( XpRSSR+U55-nU
(aQ/nU
H&up�URUR5X�U55 M( XpRSSR+U55-nU(aP/nUH%up�URUR7X�USS95 M' XpRSSR+U55-n[US5(aN[9UR:5nUSSS:XaUSSS:XaUSSR=5nXpRSU5-n[US5(a'XpRSR>55-n[US5(a'XpRS[9UR@55-n[US5(a'XpRS[9URB55-n[RD"U5nXpRS!U5-nU$s snnf![Fa S nN*f=f)"z5Produce text documentation for a given module object.�NAMEr
r�NzMODULE REFERENCEa.

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.
�DESCRIPTIONr��
 (package)zPACKAGE CONTENTSrYr�
SUBMODULESrZ�CLASSES�	FUNCTIONS�F)r��DATAr�r�r�rr��VERSIONr��DATEr��AUTHORr��CREDITSr9�FILE)$r/r`rWr�r$rIr%r�r&r�r�rrxr|�setr�r�r�r��addr�r^rwr�r�r�r/r-rJr�r\r�r�r�rDrM)r@rGr)rr�synop�descrVr�rHr�r�r�r�r�r
�
modpkgs_namesrrqr�
submodulesr
r�rr�s                         rr)�TextDoc.docmodules��������v�f�~�.������f�d�.E���
�&F�G���f�i��.������'�����l�l�+=�v�I�@���F���l�l�=�$�?�?�F���!�,�,�V�W�_�_�E�J�C����%�%�e�,�6��6�A��s��0�0��N�N�C�<�0�F���!�,�,�V�W�5F�5F�G�J�C����%�%�e�,�6��6�A��s��0�0��L�L�#��.�H���!�,�,�V�V�<�J�C��3�V�,�,����S�L�)�=�����
��6�:�&�&�,3�,@�,@����,Q�(��'�5��!�!�'�*���N�N�7�\�#9�:��N�N�7�+�-R�
�L�L�N��l�l�"�D�I�I�g�$6�8�8�F��
�!�,�,�V�W�5E�5E�F�J�C��~�~�(�(����4�4��M�9Q��!�!�#�&�G���O�O���l�l��d�i�i�
�3�5�5�F��18�9��:�3���I�9�����$�$�Y��2�D�:�;�H�%�
������
�
�e�$� ?�@�&��l�l�9�d�i�i��6I�J�J�F���H�#�
������
�
�e�$� ?�@�$��l�l�;��	�	�(�8K�L�L�F���H�"�
������
�
�e�$�r�
� J�K�#��l�l�6�4�9�9�X�3F�G�G�F��6�=�)�)��&�,�,�-�G��s��|�1�1�g�b�c�l�c�6I�!�"�R�.�.�.�0���l�l�9�g�>�>�F��6�:�&�&��l�l�6�3�v���3G�H�H�F��6�<�(�(��l�l�8�S��9J�9J�5K�L�L�F��6�=�)�)��l�l�9�c�&�:L�:L�6M�N�N�F�	 ��%�%�f�-�D��,�,�v�t�4�4���
��G:��@�	 ��D�	 �s�V2�V8�8W�Wc�^^^^^^�TRnU=(d UnTRnTR4SjnX%:XaSTRU5-nOTRU5S-U-nU(a"[	Xv5n	USSRU	5--n/n
U
Rm[T5nU(aUS:wa
T"X+-S-5 [T5nU(aT"US-5 [[R"T55n
[U
5S:�a*T"S	5 U
HnT"S
U"U5-5 M T"S5 [S[RT55[ R"S
9n[U5nSnU(aGT"S5 USUHnT"S
U-5 M UU:�aT"S[!UU-
5-S-5 T"S5 "U4SjS5nU"5mUUUUU4SjnUUUU4SjnUUUUU4Sjn[%T5VVVVs/sHunnnn['UTS9(dMUUUU4PM! nnnnnU(a�U
(aU
R)5mOUSSm[+UU4Sj5unnT[,R.LaT[,R.LaUnMdTTLaSnOS[1TTR5-n[3UT5 U"SU-US5nU"SU-US 5nU"S!U-US"5nU"S#U-US$5nU"S%U-US&5nU"S'U-US(5nU/:XdeUnU(aM�SRU
5n
U
(dUS-$US-TR5U
R75S)5-S-$s snnnnf)*z4Produce text documentation for a given class object.c��[X5$rKr�)r�rms  r�makename�"TextDoc.docclass.<locals>.makenameqs���Q�?�"r�class z	 = class rUr�rVrYr[zMethod resolution order:r�rQc3�# �UHNnURRS5(aM%URS:XdM7[UR5v� MP g7f)r�rYN)r/r�r!rJ)r�r(s  rr��#TextDoc.docclass.<locals>.<genexpr>�sI���
S�*E�3��L�L�+�+�C�0��58�^�^�z�5Q��S����
�
�*E�s�$A�A�Ar�r�zBuilt-in subclasses:Nz    ... and z other subclassesc�(>�\rSrSrSrU4SjrSrg)�(TextDoc.docclass.<locals>.HorizontalRulei�c��SUlgr�rr]s rr��1TextDoc.docclass.<locals>.HorizontalRule.__init__�rrc�F>�UR(aT"S5 SUlg)NzF----------------------------------------------------------------------rZrrs �rr�.TextDoc.docclass.<locals>.HorizontalRule.maybe�rrrNrrs�rrr��r rrc
�>�[X5up1U(aLTR5 T"U5 UH.upEpg[T
U5nT"TRUUT	T
U55 M0 U$![a T"TRXtT	55 MYf=frKr#)
r%r�r�r&r)r�r'r�r(rrGrr@s
        �����rr*�TextDoc.docclass.<locals>.spill�s����#�E�5�I�B�����
��S�	�24�.�D��E� '��� 5���T�]�]�5�(,�c�6�7�D�E�35��L��%�=��T�\�\�%�s�;�<�=�s�A$�$"B
�	B
c�>�[X5up1U(a<TR5 T
"U5 UHupEpgT
"TRXtT	55 M  U$rKr-r.s        ����rr/�*TextDoc.docclass.<locals>.spilldescriptors�r1rc�>�[X5up1U(aWT
R5 T
"U5 UH9upEpg[U5n[TU5n	T
"TR
X�TSUS9S-5 M; U$![a UR
Un	N<f=f)Nr��r�rCrY)r�rrWr$r>�__dict__r-)r%r�r�r&r)r�r'r�rCr?r(rrGrr@s          �����rr4�#TextDoc.docclass.<locals>.spilldata�s����#�E�5�I�B�����
��S�	�24�.�D�� ��-�C�5�%�f�d�3������s�#�b�c��J����
35��L��	*�5�%�.�.�t�4��5�s�A/�/B�
Br6rc�>�USTL$r9rr:s �rr��"TextDoc.docclass.<locals>.<lambda>�r=rr>r?zMethods %s:
c��USS:H$rArrBs rr�r��rCrzClass methods %s:
c��USS:H$rErrBs rr�r��rFrzStatic methods %s:
c��USS:H$rHrrBs rr�r��rIrzReadonly properties %s:
c��USS:H$rKrrBs rr�r��rLrzData descriptors %s:
c��USS:H$rNrrBs rr�r��rOrzData and other attributes %s:
c��USS:H$rQrrBs rr�r��rRrz |  )r/r�r!r��mapr^rrnrWrr%rWr]�sortedrI�__subclasses__rJrFr�r�rXr�rYrGrrr�r�rU) r@rGr)rrrZr�r�r�r�r�rlrCr[rB�
subclasses�no_of_subclasses�MAX_SUBCLASSES_TO_DISPLAY�subclassnamerr*r/r4r�r(r�r�r]r^r(rr;s `` `                         @@@rr*�TextDoc.docclassks�����?�?����x��� � �� �+�+�	#����t�y�y��2�2�E��I�I�d�O�k�1�H�<�E���(�*�G��F�T�Y�Y�w�%7�7�7�E��������f�%���w�$�����$�&�'��V�n�����t����G�N�N�6�*�+���s�8�a�<��+�,����V�h�t�n�,�-����H��
S�$�*=�*=�f�*E�
S��	�	�
�
�
�z�?��$%�!���'�(� *�+E�,E� F���V�l�*�+�!G��";�;��^��)�,E�E�F�G�(�)�*�
��H�	!�	!��
��	�	�"	�	�
	�
	� 0D�F�/K�3�/K�+�T�4��e���&�1�*�$��c�5�)�/K�	�3����K�K�M�	�!�!�H�Q�K�	�*�5�2M�N��E�9��X�_�_�,��h�o�o�1M�!����f�$�$��)�I�i�6<�6G�6G�-I�I��
�E�6�*��/�C�/��4�6�E��/�#�5�u�:�<�E��0�3�6��;�=�E�$�%@�3�%F��%J�L�E�$�%=��%C�U�%H�J�E��?�#�E�u�6�8�E��B�;��;��E�C�e�F�9�9�X�&����4�<���t�|�d�k�k�(�/�/�*;�V�D�D�t�K�K��U3s�
M3
�&
M3
c�*�SURU5-$rbr�rhs  rrd�TextDoc.formatvalues���T�Y�Y�v�&�&�&rc���URnU=(d UnUcUnSnSnSn	[U5(abURn
X�La[USS5n	O�[R
"U
5(aS[
X�5-nO�S[
U
RU5-nOj[R"U5(d[R"U5(a2URnUcS[
X�5-nOX�LaS[
X�5-nOUn	[R"U	5(aTUbQU	RUR:wd U	RURS	-U-:wa[X�5nU(aS
U-n[R "U5(d[R""U5(aSn
OSn
X&:XaUR%U5nONUb4[R&"XF/5ULaSnUR)S5(aSnUR%U5S
-U-nSn[R*"U5(aB[-U5nU(a0US:Xa*UR%U5S-nUR.(dUSSnU(dSnX�-U-U-nU(aUS-$[1U5=(d SnUS-U=(a" UR3U5R55S--$![a GN�f=f)z;Produce text documentation for a function or method object.NrQFr,rgrhrirjrrkrlT� = rbz lambda rZrrmrY)r/r�r0r$r%r&rrr1r7rnr9r>r2r!r"rurorpr�rqr�rxrnrrrWr�rU)r@rGr)rr�r'rZrsrtrurvrwrxryr�rlr_rCs                  rr+�TextDoc.docroutines����?�?����x���?��G��������F�#�#��_�_�F��|� ���T�:������(�(�,�y��/E�E��/�)��$�$�c�3+�+���(�(��0�0��%�%�f�-�-�
?�!�.�.���:�/�)�H�2J�J�D��,�#�i��&>�>�D���F����f�%�%�'�*=�����!3�!3�3����7�#7�#7�#�#=��#H�H��v�+�E��!�E�)���'�'��/�/��*�*�6�2�2�%�N��N����I�I�h�'�E����&�&�r�R�8�F�B����?�?�8�,�,��D��I�I�d�O�e�+�h�6�E������V�$�$�!�&�)�G��8�z�1��	�	�$��*�4���-�-�%�a��m�G���G��%��/�$�6����$�;����.�&�B�C��$�;�#�"J�$�+�+�c�*:�*A�*A�*C�d�*J�K�K��e"�
��
�s�K�
K�Kc��/nURnU(aU"URU55 U"S5 [U5=(d SnU(aU"URU55 U"S5 SR	U5$)z1Produce text documentation for a data descriptor.rYrQ)rr�rWr�r^r}s	         rr,�TextDoc.docdataNsb�����~�~�������4��!���J��V�n�"��������S�!�"���J��w�w�w��rr�c�l�URU5nU(a6U=(a US-=(d SU-n	U[U	5-
n
U
S:aUSU
S-nU=(a URU5S-=(d SU-n	U(d[U5nU(a#U	SUR	[U55-S--
n	U	$)z-Produce text documentation for a data object.r�rQrNr�rY)r3r]r�rWr�rJ)r@rGr)rr�r�rCrr3r��chops           rr-�TextDoc.docother^s����y�y�� ����)�T�E�\�/�R�4�7�D��C��I�%�D��a�x��U�d��e� 3���0����4��5�0�6�B�$�>�����.�C���D�4�;�;�s�3�x�0�0�4�7�7�D��rr)r�)NrQr�)NNNNr�)r/r!r"r�rFr�r�r3r�r�r�r�r)r*rdr+r,rMr-r�rrrr�r��sj��1��Z�N����D�6� �A�� c�JSL�j'�HL�T ��K�
��$�
�
rr�c��\rSrSrSrSrSrg)�
_PlainTextDocimz2Subclass of TextDoc which overrides string stylingc��U$rKrrds  rr��_PlainTextDoc.boldos���rrN)r/r!r"r�rFr�r�rrrr�r�ms
��<�rr�c�.�[5q[X5 g)zCThe first time this is called, determine what kind of pager to use.N)r�pager)r~r�s  rr�r�ts��
�K�E�	�$�rc���[R"U5(a\UR[R;aSUR-$[US5(aSUR-$SUR-$[R"U5(aSUR-$[R"U5(a@SURR<SURR<SUR<3$[R"U5(a@SURR<SURR<SUR<3$[R"U5(aS	UR-$[R"U5(aS
UR-$[R"U5(aSUR-$[U5R$)z/Produce a short description of the given thing.zbuilt-in module r�zpackage zmodule zbuilt-in function zgetset descriptor rzmember descriptor r�z	function zmethod )r%rwr/rrr�r3�isgetsetdescriptorr9r!r:r&r2r.rI)�things r�describer�zso���������>�>�S�5�5�5�%����6�6��5�*�%�%�����.�.��u�~�~�-�-�������#�e�n�n�4�4��!�!�%�(�(����)�)�5�+=�+=�+F�+F��N�N��	��!�!�%�(�(����)�)�5�+=�+=�+F�+F��N�N��	����u����%�.�.�(�(����%� � ��U�^�^�+�+��������5�>�>�)�)���;���rc�x�URS5Vs/sH
o"(dMUPM nnSupEU[U5:a@[SRUSUS-5U5nU(aXeS-pTOOU[U5:aM@U(aUnO[nX5SHn[Xr5nM U$s snf![a  gf=f)z@Locate an object by name or dotted path, importing as necessary.rr�NrZ)r#r]r$r^rYr$r>)rr"�partrr�n�
nextmodulerGs        r�locater�s���"�j�j��o�6�o�d��T�o�E�6��I�F�
�c�%�j�.������t��!��� 5�y�A�
��:�1�u�q���c�%�j�.�������b�	��	��V�*�F��
�M��
7���	��	�s�
B&�B&�B+�+
B9�8B9c��[U[5(a[X5nUc[SU-5eX 4$[	USS5nU[U[5(aU4$S4$)zDGiven an object or a path to an object, get the object and its name.Nz~No Python documentation found for %r.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.r/)r4rJrr!r$)r�r"rGr)s    r�resolver�sq���%������)���>��,�/4�4�5�
5��}���u�j�$�/���j��s�3�3�d�=�=��=�=rc��Uc[n[X5upE[U5n[R"U5nU(a!SU;aUSUSURS5--
nOU(aXtLaUSUR--
n[R"U5(d�[R"U5(dt[R"U5(dY[R"U5(d>[U5(d.[US5(a
URnO[U5nUS-
nX-S-URXE5-$)zBRender text documentation, given an object or a path to an object.Nrz in z in module �
__origin__� objectr�)r~rr�r%r��rfindr/rwr&rxr8rOr�rrIr/)r�r�r"�rendererrGr)r�rs        r�
render_docr
�s
�������5�,�L�F��F��D�
�
�
�v�
&�F���t�����.�t�z�z�#��/�/�/��	�F�(��
����/�/�����V�$�$��o�o�f�%�%�����'�'��&�&�v�.�.��f�o�o��6�<�(�(��&�&�F��&�\�F��I��D��<�&� �8�#4�#4�V�#B�B�Brc��Uc�[U[5(aUnO\[USS5n[U[5(d:[USS5n[U[5(d[U5RS-n[[
XU5SU<35 g[
XU[5nURU5 g![anU(ae[U5 SnAgSnAff=f![an[U5nSnANVSnAff=f)zCDisplay text documentation, given an object or a path to an object.Nr"r/r�Help on )r4rJr$rIr/r�r
r!�print�	plaintext�write)r�r�r"�output�is_cli�whatrr�s        rrCrC�s����~�
	��%��%�%����u�n�d�;��!�$��,�,�"�5�*�d�;�D�%�d�C�0�0�#�E�{�3�3�i�?���*�U�9�5��$��7J�K�	��5��I�>�A�	���Q����	����#�J�J��	���	��C��A��	�s0�BB8�C"�8
C�C�C�"
D�,C<�<Dc��[X5up#[R[U5[R	X#55n[US-SSS9nUR
U5 SSS5 [SUS-5 g!,(df   N=f)z<Write HTML documentation to a file in the current directory.rC�w�utf-8)�encodingN�wrote)r�htmlr�r�r/r�rr
)r�r"rGr)r�r�s      r�writedocr�sf���5�,�L�F��9�9�X�f�%�t�}�}�V�'B�C�D�	
�d�W�n�c�G�	4���
�
�4��
5�	�'�4�'�>�"�
5�	4�s�A8�8
Bc�h�Uc0n[R"U/U5Hup4n[U5 M g)zAWrite out HTML documentation for all modules in a directory tree.N)r��
walk_packagesr)r�pkgpath�donerrqrs      r�	writedocsr�s5���|�B�T�$+�$9�$9�3�%��$I� ��5����%J�
rc���\rSrSr0SS_SS_SS_SS_SS	_S
S_SS
_SS_SS_SS_SS_SS_SS_SS_SS_SS_S S_0S!S"_S#S$_S%S&_SS'_S$S(_S)S*_S+S,_S-S._S/S0_S1S_S2S_S3S4_S5S6_S7S8_SS9_S:S;_S	S<_ES=S>0ErS?VVVs/sHnS@Ho!U-PM	 M snnnrSASBSCSD/\Q7SESFSGSHSISJSK.r0SLSM_SNSO_SPSQ_SRSS_STSU_SVSW_SXSY_SZS[_S\S]_S^S__S`Sa_SbSc_SdSe_SfSe_SgSh_SiSh_r\R5H4ur	r
\
H(r\R\\	5r
\	\
;a\
Sj-\	-r
\
\\'M* M6 C	C
CC
0SkSl_S[Sm_SnSo_SpSq_SrSs_StSu_SvSw_SxSy_SzS{_S|S}_S~S_S�S�_S�S�_S�S�_S�S�_S�Sk_S�Sk_0S�S�_SUS�_S�S�_S�S�_S�S�_S�S$_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_E0S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S�S�_S_S�_S�S�_S�S|_S�S�_S�S�_S�S�_SS�_S�S�_E0S�S�_S�S�_S�S�_S�S�_SOS�_S�S�_S�S�_S�S�_S�S�_S,S�_SS�_S�S
_S�S�_S�S�_S]S�_S�S_S�S7_ES$SS�S�S�S�S�.Er
S�S�jr\S�5r\S�5rS�r\"5r\4S�jrS�rS�rS�S�jrS�rS�S�jrS�rS�rS�rS�S�jrS�S�jrS�r S�S�jr!S�r"g�s snnnf)��Helperi��FalserQ�None�True�and�BOOLEAN�as�with�assert)r(rQ�async)r)rQ�await)r*rQ�break)r+�	while for�class)r-zCLASSES SPECIALMETHODS�continue)r.r,�def)�functionrQ�del)r1�BASICMETHODS�elif�if�else)r5r,�except�try�finally�for)r9zbreak continue while�from�import�global)r<znonlocal NAMESPACES)r4�
TRUTHVALUE)r;�MODULES�in)r?�SEQUENCEMETHODS�is�
COMPARISON�lambda)rCr��nonlocal)rDzglobal NAMESPACES�not�or�pass)rGrQ�raise)rH�
EXCEPTIONS�return)rJr�)r7rI�while)rKzbreak continue if TRUTHVALUE)r'z CONTEXTMANAGERS EXCEPTIONS yield�yield)rLrQ)�b�frt�u��'r�rQz'''r�r�)�+r7�*�**rBz//�%�<<�>>ra�|�^�~rbrc�<=�>=�==�!=�<>)rbrcr[r\r]r^r_)r7rZ)z+=z-=z*=z/=z%=z&=z|=z^=z<<=z>>=z**=z//=)rVrWrarXrYrZ)�j�J)�STRINGS�	OPERATORSrB�UNARY�AUGMENTEDASSIGNMENT�BITWISE�COMPLEXrUzOPERATORS FORMATTINGrT�POWER�,zTUPLES LISTS FUNCTIONSrz ATTRIBUTES FLOAT MODULES OBJECTSr��ELLIPSIS�:zSLICINGS DICTIONARYLITERALS�@z	def classr�rbz:=�ASSIGNMENTEXPRESSIONSr��PRIVATENAMESr�zPRIVATENAMES SPECIALMETHODS�`�
BACKQUOTESrfzTUPLES FUNCTIONS CALLSr��[zLISTS SUBSCRIPTS SLICINGS�]r2�TYPES)�typeszRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect)�stringsz4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES�
STRINGMETHODS)zstring-methodszSTRINGS FORMATTING�
FORMATTING)�
formatstringsrc�UNICODE)ruz:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES�NUMBERS)�numberszINTEGER FLOAT COMPLEX TYPES�INTEGER)�integersz	int range�FLOAT)�floatingz
float mathrg)�	imaginaryz
complex cmath�	SEQUENCES)�typesseqz$STRINGMETHODS FORMATTING range LISTS�MAPPINGS�DICTIONARIESr�)�typesfunctionsz	def TYPES�METHODS)�typesmethodszclass def CLASSES TYPES�CODEOBJECTS)zbltin-code-objectszcompile FUNCTIONS TYPES�TYPEOBJECTS)zbltin-type-objectsztypes TYPES�FRAMEOBJECTS�
TRACEBACKS�NONE)zbltin-null-objectrQ)zbltin-ellipsis-object�SLICINGS�SPECIALATTRIBUTES)�specialattrsrQr�)rtz!class SPECIALMETHODS PRIVATENAMESr>)�typesmodulesr;�PACKAGES�EXPRESSIONS)zoperator-summaryz�lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESrc�
PRECEDENCE�OBJECTS)�objectsrs�SPECIALMETHODS)�specialnameszbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESr2)�
customizationzhash repr str SPECIALMETHODS�ATTRIBUTEMETHODS)zattribute-accesszATTRIBUTES SPECIALMETHODS�CALLABLEMETHODS)zcallable-typeszCALLS SPECIALMETHODSr@)�sequence-typesz(SEQUENCES SEQUENCEMETHODS SPECIALMETHODS�MAPPINGMETHODS)r�zMAPPINGS SPECIALMETHODS�
NUMBERMETHODS)z
numeric-typesz*NUMBERS AUGMENTEDASSIGNMENT SPECIALMETHODS�	EXECUTION)�	execmodelz%NAMESPACES DYNAMICFEATURES EXCEPTIONS�
NAMESPACES)�namingz3global nonlocal ASSIGNMENT DELETION DYNAMICFEATURES�DYNAMICFEATURES)zdynamic-featuresrQ�SCOPING�FRAMESrI)r;ztry except finally raise�CONVERSIONS)�conversionsrQ�IDENTIFIERS)�identifierszkeywords SPECIALIDENTIFIERS�SPECIALIDENTIFIERS)z
id-classesrQ)zatom-identifiersrQ�LITERALS)z
atom-literalsz=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS�TUPLES�
TUPLELITERALS)�	exprlistszTUPLES LITERALS�LISTS)ztypesseq-mutable�LISTLITERALSr�)�listszLISTS LITERALS)�typesmapping�DICTIONARYLITERALSr�)r;zDICTIONARIES LITERALS�
ATTRIBUTES)zattribute-referencesz(getattr hasattr setattr ATTRIBUTEMETHODS�
SUBSCRIPTS)�
subscriptionsr@r�)�slicingsr@�CALLS)�callsr�)�powerr�rd)�unaryr��BINARY)�binaryr��SHIFTING)�shiftingr�rf)�bitwiser�)�comparisonszEXPRESSIONS BASICMETHODS)�booleanszEXPRESSIONS TRUTHVALUE�	ASSERTION�
ASSIGNMENT)�
assignmentrere)�	augassignr�)zassignment-expressionsrQ�DELETION�	RETURNING)�compoundzfor while break continue)�truthz if while and or not BASICMETHODS)�debugger�pdb)zcontext-managersr')�	IMPORTING�CONDITIONAL�LOOPINGr=�	DEBUGGING�CONTEXTMANAGERSNc��XlX lgrK��_input�_output)r@�inputrs   rr��Helper.__init__�s�����rc�H�UR=(d [R$rK)r�r�stdinr]s rr��Helper.input�s���{�{�'�c�i�i�'rc�H�UR=(d [R$rK)r�r�stdoutr]s rr�
Helper.output�s���|�|�)�s�z�z�)rc��[R"5SSS:XaU"5 gSURR<SURR<S3$)NrZr��?rQrbrz
 instance>)r%�stackr1r!r"r]s r�__repr__�Helper.__repr__�sO���=�=�?�1��a� �C�'��F��(�&*�^�^�%>�%>�%)�^�^�%@�%@�B�	Brc�&�XRLaURU5 gUR5 UR
5 URR	S5 g![a(nURR	US35 SnAgSnAff=f)NrYa
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.
)�_GoInteractiverr!rr�intro�interact)r@�requestrs   r�__call__�Helper.__call__�sw���-�-�-�
.��	�	�'�"�
�J�J�L��M�M�O��K�K����
���
.����!�!�S�E��*�-�-��
.�s�A�
B�(B�Bc��URRS5 URS5nU(dgUR5n[
U5S:�a'USUSs=:XaS;aO OUSUSS;aUSSnUR5S;agUS	:XaUR5 OURU5 M�![[4a gf=f)
NrYzhelp> r[rrrPrZ)�q�quit�exitr)
rr�getline�KeyboardInterrupt�EOFErrorr\r]rFr�r)r@r�s  rr��Helper.interact�s��������$���
��,�,�x�0����w��m�m�o�G��G��q� �W�Q�Z�7�2�;�%L�*�%L���
�'�!�B�-�7�!�!�B�-���}�}��"7�7���&� ��
�
���	�	�'�"�#��&�x�0�
��
�s�B=�=C�Cc���UR[RLa[U5$URR	U5 URR5 URR
5$)z.Read one line, using input() when appropriate.)r�rr�rr�flushr�)r@�prompts  rr��Helper.getline�sQ���:�:����"���=� ��K�K���f�%��K�K�����:�:�&�&�(�(rc��[U[5(Ga^UR5nUS:XaUR5 GOiUS:XaUR	5 GOQUS:XaUR5 GO9US:XaUR
5 GO!USSS:Xa#UR
UR5S5 O�XR;aURU5 O�US;a [[U5S	URUS
9 O�XR;aURU5 O�XR;aURU5 OlU(a[US	URUS
9 ON[[S	URUS
9 O3[U[ 5(aU"5 O[US	URUS
9 UR"R%S5 g)N�keywords�symbols�topicsr�zmodules rZ)r#r!r"zHelp on %s:)rrrY)r4rJr\�listkeywords�listsymbols�
listtopics�listmodulesr#r��
showsymbolrC�evalr�r��	showtopicr�r rr)r@r�rs   rr�Helper.help�sE���g�s�#�#��m�m�o�G��*�$�d�&7�&7�&9��I�%�t�'7�'7�'9��H�$�d�o�o�&7��I�%�t�'7�'7�'9���!��
�*�� � ������!3�4��L�L�(�$�/�/�'�*B��5�5��D��M�=����f�U��M�M�)�4�>�>�'�+B��K�K�'�����)@��#�g�}�T�\�\�RX�Y��c�=����f�M�
���
(�
(�$�&��'�=����f�M������$�rc��URRSRS[RSS-55 g)Na�Welcome to Python {0}'s help utility! If this is your first time using
Python, you should definitely check out the tutorial at
https://docs.python.org/{0}/tutorial/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To get a list of available
modules, keywords, symbols, or topics, enter "modules", "keywords",
"symbols", or "topics".

Each module also comes with a one-line summary of what it does; to list
the modules whose name or summary contain a given string such as "spam",
enter "modules spam".

To quit this help utility and return to the interpreter,
enter "q", "quit" or "exit".
z%d.%dr[)rrrhrrLr]s rr��Helper.intros7�������� �F�7�S�%�%�b�q�)�)�*�!	,rc��[[U55nX2-n[U5U-S-
U-n[U5H�n[U5HtnXu-U-nU[U5:dMURRX5 XrS-
:dMBURRSSUS-
[X5-
--5 Mv URRS5 M� g)NrZr2rY)r�r�r]r�rr)	r@�items�columnsr��colwr��rowr�r�s	         rr��Helper.lists����V�E�]�#������E�
�W�$�q�(�W�4����;�C��W�~���J��$���s�5�z�>��K�K�%�%�e�h�/��q�[�(����)�)�#��t�a�x�#�e�h�-�7O�0P�*P�Q�&�
�K�K���d�#�rc��URRS5 URURR	55 g)NzN
Here is a list of the Python keywords.  Enter any keyword to get more help.

)rrr�r�r�r]s rr��Helper.listkeywords(s4��������	�	
�	�	�$�-�-�$�$�&�'rc��URRS5 URURR	55 g)Nzx
Here is a list of the punctuation symbols which Python assigns special meaning
to. Enter any symbol to get more help.

)rrr�r�r�r]s rr��Helper.listsymbols/s4��������	�
	
�	�	�$�,�,�#�#�%�&rc��URRS5 URURR	55 g)NzN
Here is a list of available topics.  Enter any topic name to get more help.

)rrr�r�r�r]s rr��Helper.listtopics7s4��������	�	
�	�	�$�+�+�"�"�$�%rc��SSKnURRXRRU55nU(d(URRS[U5-5 g[U[5(aURXB5$UupVURRUnUR5S-nU(aU=(d SS-U-nU(aRSSK
nSSRUR55-S-n	UR!U	S	5n
US
SRU
5--
nUR"c[%USU<35 gURRU5 g![a URRS5 gf=f![a* URRS[U5-5 gf=f)Nr�t
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
zno documentation found for %s
rYrQr2�Related help topics: r��Hz
%s
r)�pydoc_data.topicsr!rrr�r r�r3r4rJr�KeyErrorr\�textwrapr^r#�wrapr�r�)r@�topic�
more_xrefs�
pydoc_data�target�label�xrefsrCrr~�wrapped_texts           rr�Helper.showtopic>s���	�$�������
�
�(9�(9�%�(@�A����K�K���?�$�u�+�M�N���f�c�"�"��>�>�&�5�5����	��#�#�*�*�5�1�C��i�i�k�D� ����[�b�C�'�*�4�E���*�T�Y�Y�u�{�{�}�-E�E��L�D�#�=�=��r�2�L��8�d�i�i��5�5�5�C��<�<���#��%��+�,��K�K���c�"��?�	��K�K����
�
�	�� �	��K�K���?�$�u�+�M�N��	�s#�E+�F�+%F�F�1G
�	G
c�t�SSKnURRXRRU55nU(d[S5e[
U[5(aURXB5$UupVURRUnU(aU=(d SS-U-nXv4$![a gf=f)aReturn 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.
rN)rrQzcould not find topicrQr2)	rr!r�r r�rir4rJ�	_gettopic)r@rrrrrrrCs        rr!�Helper._gettopicbs���	
�$�������
�
�(9�(9�%�(@�A����3�4�4��f�c�"�"��>�>�&�5�5�������&�&�u�-����[�b�C�'�*�4�E��z����	
�
�	
�s�B*�*
B7�6B7c�l�URUnURS5up4nURX55 g)Nr2)r��	partitionr)r@�symbolrrr�rs      rr��Helper.showsymbol}s0�����f�%�� �*�*�3�/���%����u�$rc�v^�U(a6URRSRU55 [U5 gURRS5 0nU4SjmU4Sjn[	5RTUS9 UR
UR55 URRS5 g)Nzy
Here is a list of modules whose name or summary contains '{}'.
If there are any, enter a module name to get more help.

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

c�h�U(aUSSS:XaUSSS-nURS5S:aSX1'gg)N����	.__init__r�rrrZ)�find)rrqr�rs    r�callback�$Helper.listmodules.<locals>.callback�s@���w�r�s�|�{�:�%�c�r�l�\�9�G��<�<��$�q�(�'(�G�$�)rc�>�T"SUS5 grKr)rqr,s �r�onerror�#Helper.listmodules.<locals>.onerror�s�����w��-r�r/z�
Enter any module name to get more help.  Or, type "modules spam" to search
for modules whose name or summary contain the string "spam".
)rrrh�apropos�
ModuleScanner�runr�r�)r@r�rr/r,s    @rr��Helper.listmodules�s������K�K�����F�3�K�	
�

�C�L��K�K����
��G�6=�
)�

.��O����'��:��I�I�g�l�l�n�%��K�K����
rr�r�)F)r�rcr�)#r/r!r"r�r��_strprefixes�_symbols_inverser�rr�symbols_r%r r�r�r5r�rr�rGr�r�r�r�rr�r�r�r�r�rr!r�r�r�)r��pr�s000rr r �s���$���$���$�	��$�	�y�	$�
	
�f�$�	�.�
$�	��$�	��$�	�'�$�	�4�$�	�-�$�	��$�	�&�$�	��$�	�%�$� 	�%�!$�"	�5�#$�$	�.�%$�&	��'$�(	�3�)$�*	
�"�+$�,	�'�-$�.	
�'�/$�0	
�l�1$�2	�)�3$�4	�5�5$�6	�y�7$�8	
�i�9$�:	��;$�<	�(�=$�>	�)�?$�@	�$�A$�B	�:�C$�D	�<�E$�F	��G$�H�N$8�L�#7�a��A��E��E�#7�L�L��%��e�;�l�;�N�?��!B�4��
����
#���g��	�
%��	�
/�	�
	�z��	�
*�
�	�[��	
�i��	
�%��	�^��	
�+��	�\��	�
%��	�
%��	�
(�� 	�
(�!�G�$,�1�1�3���x��F��[�[���/�F��F�"��#���-��$�G�F�O�	�4�	�x���V��=�V�	�(�V�
	�A�V�	�4�
V�	�(�V�	�=�V�	�,�V�	�+�V�	�1�V�	�I�V�	�N�V�	�4�V� 	�>�!V�"	�H�#V�$	�<�%V�&	��'V�(	�g�)V�*	�)�+V�,	�9�-V�.	�1�/V�0	�A�1V�2	�-�3V�4	�H�5V�6	�.�7V�>	�]�?V�@	�m�AV�B	�'�CV�D	�4�EV�J	�I�KV�L	�M�MV�N	�E�OV�P	�/�QV�T	�G�UV�V	�,�WV�Z	�K�[V�\	�W�]V�^	�3�_V�`	�<�aV�b	�,�cV�d	�@�eV�f	�*�gV�h	�E�iV�j	�0�kV�l	�0�mV�n	�8�oV�r	�+�sV�t	�9�uV�v	�5�wV�x	�3�yV�z	�>�{V�|	�?�}V�~	�Z�V�@	�:�AV�B	�3�CV�D	�)�EV�F	�)�GV�H	�)�IV�J	�+�KV�L	�/�MV�N	�-�OV�P	�A�QV�R	�9�SV�T	�X�UV�V	�;�WV�X	�=�YV�Z	 �!?�[V�\	�E�]V�^	�X�_V�`��;�C�(�7�kV�F�p��(��(��*��*�B��X�N�-�� #�*)� �*,�&$�(�'�&�"#�H�6%�
��_
Ms�;Ir c�"�\rSrSrSrSSjrSrg)r3i�z7An interruptible scanner that searches module synopses.Nc�
�U(aUR5nSUl0n[RH�nUS:wdMSXV'UcU"SUS5 M[	U5R
=(d SnUR
S5SnUS-U-nUR5RU5S:�dM}U"SXh5 M� [R"US9GHMup�n
UR(a GO7UcU"SUS5 M*U	RU5nURn[US	5(a`URU5n
[!["R$"U
55=(d Sn[US
5(aUR'U5nO`SnO][(R*R-U5nUR
(aUR
R15SOSn[3USS5nUS-U-nUR5RU5S:�dGMDU"X�U5 GMP U(aU"5 gg![a GMpf=f![a U(aU"U5 GM�f=f![.a U(aU"U5 GM�f=f)NF�__main__rZrQrYrr
r1�
get_source�get_filenamer�)rFr�rr�
__import__rFr#r+r�r�	find_specr r�r�r=r$r��io�StringIOr>r�r�r�r!r�r$)r@r,r��	completerr/�seenrqr)r�rrrr��sourcerrs                rr4�ModuleScanner.run�s8���c�i�i�k����	����/�/�G��*�$� !��
��;��T�7�B�/�%�g�.�6�6�<�"�D��:�:�d�+�A�.�D�"�U�?�T�1�D��z�z�|�(�(��-��2� ��w�5�0�)0�(=�(=�g�(N�$�H�u��y�y���{���w��+��#�-�-�g�6�D������6�<�0�0�!�!'�!2�!2�7�!;��
+�2�;�;�v�+>�?�E�2�D��v�~�6�6�%�2�2�7�;��#��!�!*�!5�!5�!;�!;�D�!A��
>D�^�^�6�>�>�4�4�6�q�9�QS�D�"�6�*�T�:�D�����-���:�:�<�$�$�S�)�Q�.��T�D�1�I)O�L��K���;#�����%�!�"�#�G�,� �!��'�!�"�#�G�,� �!�s6�:H1�)I�	I$�1
I�?I�I!� I!�$J�J)r�r�)r/r!r"r�rFr4r�rrrr3r3�s
��A�8rr3c���SnSn[R"5 [R"S5 [5R	XUS9 SSS5 g!,(df   g=f)zAPrint all the one-line module summaries that contain a substring.c�T�USSS:XaUSSS-n[X=(a SU-5 g�Nr)r*r�z- )r
)rrqr�s   rr,�apropos.<locals>.callback�s1���2�3�<�;�&��c�r�l�\�1�G�
�g�+��t��,rc��grKr�rqs rr/�apropos.<locals>.onerror�s��r�ignorer1N)r��catch_warnings�filterwarningsr3r4)r�r,r/s   rr2r2�sG��-�
�	�	 �	 �	"�����)�����H�7��;�
#�	"�	"�s�/A�
A"c�^^^^^	^
�SSKmSSKmSSKm	SSKm
"SSTRR
5m"U	4SjSTRR5m"UUUUU
4SjST
R5nU"XU5nUR5 UR(doUR(aUR(dM[R"S	5 UR(d&UR(dM:UR(dMMU$)
a�Start 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.monotonic()
    >>> timeout = 1                    #seconds

    This is a short timeout for testing purposes.

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

    Print any errors that may have occurred.

    >>> print(serverthread.error)
    None
rNc� �\rSrSrSrSrSrg)�!_start_server.<locals>.DocHandleri(	c�B�URRS5(aSnOSnURS5 URSSU-5 UR	5 UR
R
URURU5RS55 g)	z~Process a request from an HTML browser.

The URL received is in self.path.
Get an HTML page from self.urlhandler and send it.
z.css�text/css�	text/html��zContent-Typez%s; charset=UTF-8rN)	rr��
send_response�send_header�end_headers�wfiler�
urlhandler�encode)r@�content_types  r�do_GET�(_start_server.<locals>.DocHandler.do_GET*	s����y�y�!�!�&�)�)�)��*�����s�#����^�-@�<�-O�P������J�J���T�_�_��	�	�<�)�)/����
:rc��grKr)r@r.s  r�log_message�-_start_server.<locals>.DocHandler.log_message:	s��rrN)r/r!r"r�r_rbr�rrr�
DocHandlerrS(	s��	:� 	rrdc�.>�\rSrSrSrU4SjrSrSrg)� _start_server.<locals>.DocServeri>	c��XlURU4UlX0lURR	XRUR
5 SUlg�NF)�host�addressr,rBr��handlerr�)r@ri�portr,s    rr��)_start_server.<locals>.DocServer.__init__@	s?���I� �I�I�t�,�D�L�$�M��I�I���t�\�\�4�<�<�@��D�Irc�>�UR(dZTRURR5///S5upnU(aUR	5 UR(dMZUR5 gr�)r��select�socket�fileno�handle_request�server_close)r@�rd�wr�exros    �r�serve_until_quit�1_start_server.<locals>.DocServer.serve_until_quitG	sZ����i�i�#�]�]�D�K�K�,>�,>�,@�+A�2�r�1�M�
�����'�'�)��i�i�i�
���rc��URRU5 UR(aURU5 ggrK)rB�server_activater,r]s rrz�0_start_server.<locals>.DocServer.server_activateN	s,���I�I�%�%�d�+��}�}��
�
�d�#�r)rjr,rir�N)r/r!r"r�r�rwrzr�)ros�r�	DocServerrf>	s���	�	 �	$rr|c�@>�\rSrSrU4SjrUUUU4SjrSrSrSrg)�#_start_server.<locals>.ServerThreadiS	c�>�XlX l[U5UlTRRU5 SUlSUlSUlgrh)	r\rir�rl�Threadr��serving�error�	docserver)r@r\rirl�	threadings    �rr��,_start_server.<locals>.ServerThread.__init__U	sA���(�O��I��D�	�D�I����%�%�d�+� �D�L��D�J�!�D�Nrc�l>�TRRTlTTlTRR
Tl[UR5TlT"URURUR5nXlUR5 g![anX lSnAgSnAff=f)zStart the server.N)�server�
HTTPServerrBrkr4�Message�MessageClass�staticmethodr\rirl�readyr�rwr$r�)r@�docsvrrrdr|�email�https   ����rr4�'_start_server.<locals>.ServerThread.run^	s����	
!�!%���!7�!7�	��$.�	�!�*/�-�-�*?�*?�
�'�(4�T�_�_�(E�
�%�"�4�9�9�d�i�i����D��!'���'�'�)���
!� �
�
��
!�s�BB�
B3�#B.�.B3c��SUlURUlURUlSURUR4-Ulg)NTz
http://%s:%d/)r�ri�server_portrlr�)r@r�s  rr��)_start_server.<locals>.ServerThread.readyk	s:���D�L����D�I��*�*�D�I�&�$�)�)�T�Y�Y�)?�?�D�Hrc�p�SURlUR5 SUlSUlSUlg)z&Stop the server and this thread nicelyTNF)r�r�r^r�r�r]s r�stop�(_start_server.<locals>.ServerThread.stopq	s.��"&�D�N�N���I�I�K�"�D�N� �D�L��D�Hr)r�r�rirlr�r�r\N)	r/r!r"r�r�r4r�r�r�)rdr|r�r�r�s�����r�ServerThreadr~S	s���	"�	!�	!�	@�	rr�g{�G�z�?)�http.server�
email.messageror�r��BaseHTTPRequestHandlerr�r�r�r�r�r��time�sleep)r\�hostnamerlr��threadrdr|r�r�ror�s     @@@@@@r�
_start_serverr��s����p�����T�[�[�7�7��,$�D�K�K�*�*�$�*&�&�y�'�'�&�P�*��
5�F�
�L�L�N��l�l�F�N�N�v�7G�7G��
�
�3���l�l�F�N�N�N�v�7G�7G�7G��Mrc�^^^	^
^^^
^^�"U4SjS[5nU"5mU4SjmU4Sjm
U4Sjm
U4SjmU4SjmU4SjmU4S	jm	U4S
jmUUU	U
UU
UU4SjnURS5(aUS
SnUS:Xa�[RR	[RR[55n[RRX@5n[U5nSRUR55sSSS5 $US:XaU"U5$[SU<SU<35e!,(df   N!=f)z�The 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.
c�">�\rSrSrU4SjrSrg)�_url_handler.<locals>._HTMLDoci�	c	�B>�SnSU-nSU<SU<ST"5<SU<S3	$)r�zpydoc_data/_pydoc.cssz1<link rel="stylesheet" type="text/css" href="%s">zH<!DOCTYPE>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Pydoc: z	</title>
z
</head><body>z*<div style="clear:both;padding-top:.5em;">z</div>
</body></html>r)r@r�r��css_path�css_link�html_navbars     �rr��#_url_handler.<locals>._HTMLDoc.page�	s/���.�H�C���
��H�k�m�X�?�
?rrN)r/r!r"r�r�r�)r�s�r�_HTMLDocr��	s
���
	?�
	?rr�c	�>�TR[R"5<S[R"5S<S[R"5<S35nSU<STR[R"SS95<S	3$)
Nz [rr�rrz=
            <div style='float:left'>
                Python �<br>T)�tersea
            </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>
            )re�platform�python_version�python_build�python_compiler)rrs �rr��!_url_handler.<locals>.html_navbar�	sg����+�+�x�/F�/F�/H�/7�/D�/D�/F�q�/I�/7�/G�/G�/I�K�L��0�D�K�K��(9�(9��(E�F�+H�	Hrc�>�SnTRS5n[RVs/sH
nUS:wdMUPM nnTRX05nUSTR	SSU5-/n0n[R
H#nUR
TRXe55 M% UR
S5 SS	RU54$s snf)
zModule Index page.c��SU<SU<S3$�Nr�r�r�r�r)s r�	bltinlink�3_url_handler.<locals>.html_index.<locals>.bltinlink�	�
��15�t�<�<rz/<strong class="title">Index of Modules</strong>r<z<p>zBuilt-in Modulesr�zf<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee&lt;ping@lfw.org&gt;</p>zIndex of ModulesrQ)	r�rrr�r�rrr�r^)r�r�r)�namesr�rDrrs       �r�
html_index� _url_handler.<locals>.html_index�	s����	=��,�,�=�
��#&�":�":�(�":�$��J�&��":��(��#�#�E�5���U�T�_�_����&3�3�4�����8�8�C��O�O�D�J�J�s�1�2��	���
'�	(�"�2�7�7�8�#4�4�4��(s
�
C�Cc�>^	�/m	U	4Sjn[R"5 [R"S5 Sn[5R	XUS9 SSS5 Sn/nT
RS5nT	HupgUR
U"U5U-5 M! UT
RSU-S	S
RU55-nSU4$!,(df   Nu=f)zSearch results page.c�d>�USSS:XaUSSS-nTRX=(a SU-45 grIr�)rrqr��
search_results   �rr,�3_url_handler.<locals>.html_search.<locals>.callback�	s;����r�s�|�{�*�!�#�2�,��5��� � �'�+?�D�4�K�!@�ArrNc��grKrrLs rr/�2_url_handler.<locals>.html_search.<locals>.onerror�	s��rr1Nc��SU<SU<S3$r�rr�s rr��4_url_handler.<locals>.html_search.<locals>.bltinlink�	r�rz-<strong class="title">Search Results</strong>zkey = %sr�r�zSearch Results)	r�rOrPr3r4r�rr�r^)r�r,r/r�r�r�r)r�r�r�rs         @�r�html_search�!_url_handler.<locals>.html_search�	s�����
�	B�
�
$�
$�
&��#�#�H�-�
��O����w��?�	'�	=����,�,�;�
��(�J�D��N�N�9�T�?�T�1�2�(��T�_�_����g�v�{�{�7�';�=�=����)�)�%'�
&�s�2C�
Cc��>�SnTRS5n[[RR	55nTRX 5nUTR
SSU5-nSU4$)zIndex of topic texts available.c��SU<SU<S3$�Nz<a href="topic?key=r�r�rr�s rr��4_url_handler.<locals>.html_topics.<locals>.bltinlink�	�
��6:�D�A�Ar�$<strong class="title">INDEX</strong>�Topicsr�)r�r�r r�r�r�r�)r�r�r�r�rs    �r�html_topics�!_url_handler.<locals>.html_topics�	sl���	B��,�,�2�
���v�}�}�)�)�+�,���#�#�E�5���T�_�_��g�x�)�)����!�!rc��>�TRS5n[[RR	55nSnTRX5nUTR
SSU5-nSU4$)zIndex of keywords.r�c��SU<SU<S3$r�rr�s rr��6_url_handler.<locals>.html_keywords.<locals>.bltinlink	
r�r�Keywordsr�)r�r�r r�r�r�r�)r�r�r�r�rs    �r�
html_keywords�#_url_handler.<locals>.html_keywords
sl����,�,�2�
���v���+�+�-�.��	B��#�#�E�5���T�_�_����+�+���8�#�#rc��>�[R"5n[X5nURU5up4XR;aSnOSnTRSU-5nSTR
U5-nTRUSU5nU(a@[UR55nSnTRXG5nTRSSU5nU<SU<3S	RXcU454$)
zTopic or keyword help page.�KEYWORD�TOPICr�z
<pre>%s</pre>r�c��SU<SU<S3$r�rr�s rr��7_url_handler.<locals>.html_topicpage.<locals>.bltinlink"
s
��:>��E�Errr2rQ)
rArBr r!r�r�r�r�r�r#r�r�r^)	r�buf�htmlhelpr�rr�r�r�rs	        �r�html_topicpage�$_url_handler.<locals>.html_topicpage
s�����k�k�m���#�#��"�,�,�U�3����%�%�%��E��E��,�,�/�%�7�
��#�T�[�[��%:�:���?�?�5�7�H�=����5�;�;�=�)�E�
F��$�$�U�6�E��L�L�!8�'�5�I�E� �%�(�����E�2�3�5�	5rc�~>�[USS9nUcUS:wa[S5e[U5nTRX5nX#4$)NrZ)r"r"zcould not find object)rrir�r/)r�r?r��contentrs    �r�html_getobj�!_url_handler.<locals>.html_getobj*
sE����S�A�&���;�3�&�=��4�5�5���
���-�-��)���~�rc�>�TRS5nSRU4Sj[[U5U555nUTR	USU5-nSU-U4$)Nz$<strong class="title">Error</strong>r�c3�F># �UHnTRU5v� M g7frK)re)r�r�rs  �rr��3_url_handler.<locals>.html_error.<locals>.<genexpr>6
s%����F�D�6:�t�{�{�4�0�0�D�s�!r�z
Error - %s)r�r^rrIr�)r�rr�r�rs    �r�
html_error� _url_handler.<locals>.html_error2
sf����,�,�2�
���;�;�F�4�T�#�Y��D�F�F���T�_�_�S�'�8�D�D���c�!�8�+�+rc�V>�UnURS5(aUSSnUS;a
T
"5up#O�US:Xa
T"5up#O�US:Xa
T"5up#OuSU;adURS5upEnUS:XaT"U5up#OJUS	:XaT
"U5up#O8US
:XaUS;a
T
"5up#O"T	"U5up#O[S5eT	"U5up#TR	X#5$![a
 T	"U5up#N'f=f![a
 T
"U5up#NAf=f![anT"X5up#SnAN^SnAff=f)zGenerate an HTML page for url.rCN���)rQr�r�r�rcz
search?keyz	topic?keyzget?keyz
bad pydoc url)r�r$rir$r�)r��complete_urlr�r��opr�rrr�r�r�r�r�r�r�s       ��������r�
get_html_page�#_url_handler.<locals>.get_html_page;
sc������<�<�� � ��c�r�(�C� 	;��m�#�!+����w����!,����w��
�"�!.����w���� �]�]�3�/�
��s���%�%0��%5�N�E�7��;�&�:�)7��)<���w��9�_��m�+�)3����w�A�-8��-=�N�E�7�%�_�5�5�!,�S�!1���w��y�y��(�(��%&�:�)4�S�)9���w�:�� *�A�-;�C�-@�N�E�7�A���	;�'��:�N�E�7��	;�sv�D
�D
�D
�*D
�;D
�
C�
D
�$
C0�/D
�C-�*D
�,C-�-D
�0D�D
�D�D
�

D(�
D#�#D(rBrZNrUrQrVzunknown content type z	 for url )r�r�rr�dirname�realpathr�r^r��	readlinesrM)r�r^r�r��	path_herer��fprr�r�r�r�r�r�r�r�s       @@@@@@@@@r�_url_handlerr��	s�����?�7�?�$�:�D�H�65�0*�<"� 
$�5�2�,�&)�&)�P�~�~�c����!�"�g���z�!��G�G�O�O�B�G�G�$4�$4�X�$>�?�	��7�7�<�<�	�/��
�(�^�r��7�7�2�<�<�>�*��^�	��	$��S�!�!�
�L�#�N�
O�O��^�s�+D5�5
ET�	localhost)�open_browserr�c��SSKn[[X 5nUR(a[	UR5 gUR
(a�SnU(aUR
UR5 [	SUR5 [	U5 UR
(ab[S5nUR5nUS:XaO@US:XaUR
UR5 O[	U5 UR
(aMbUR
(aUR5 [	S5 ggg![[4a
 [	5 NKf=f!UR
(aUR5 [	S5 ff=f)	z�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.
rNz"Server commands: [b]rowser, [q]uitzServer ready atzserver> r�rMzServer stopped)
�
webbrowserr�r�r�r
r�r�r�r�rFr�r�r�)rlr�r�r��serverthread�server_help_msg�cmds       r�browser�p
s0��� ��x�>�L����
�l� � �!�����>����O�O�L�,�,�-�	(��#�\�%5�%5�6��/�"��&�&��J�'���i�i�k���#�:���C�Z��O�O�L�$4�$4�5��/�*��&�&�&��#�#��!�!�#��&�'�$�'�� "�8�,�	��G�	���#�#��!�!�#��&�'�$�s1�2AD5�E�>D5�5E�E�E�E�/Fc�t�[U[5=(a" UR[R5S:�$r�)r4rJr+r�sep)r�s r�ispathr��
s%���a���5�!�&�&����.�A�"5�5rc���SU;d-[RU;d[R"5U;ag[RR	[
5n[RR	U5nUR
5nX0;a5[RRX25(dURU5 URS[R"55 U$)z�Ensures current directory is on returned path, and argv0 directory is not

Exception: argv0 dir is left alone if it's also pydoc's directory.

Returns a new path entry list, or None if no adjustment is needed.
rQNr)
r�curdir�getcwdrr�r��copy�samefile�remove�insert)�
given_path�argv0�
stdlib_dir�
script_dir�revised_paths     r�_get_revised_pathr	�
s���
�Z��2�9�9�
�2�b�i�i�k�Z�6O��������*�J�������'�J��?�?�$�L������(8�(8��(P�(P����J�'�����2�9�9�;�'��rc��[[R[RS5nUbU[RSS&gg)z�Ensures current directory is on sys.path, and __main__ directory is not.

Exception: __main__ dir is left alone if it's also pydoc's directory.
rN)r	rr�argv)rs r�_adjust_cli_sys_pathr�
s4��
%�S�X�X�s�x�x��{�;�L���"������ rc��SSKn"SS[5n[5 UR[RSSS5up#SnSnSnSnSnUH@up�U	S	:XaS
nS
nU	S:Xa
[U
5  gU	S:XaS
nU
nU	S
:XaS
nU	S:XdM<S
nU
nMB U(a[
XxUS9 gU(dUeUGHn[U5(aH[RRU5(d$[SU-5 [R"S5 [U5(a/[RRU5(a[U5nU(aN[U5(a1[RRU5(a
[!U5 M�[#U5 M�[$R%US
S9 GM g![&[(4a-n[U5 [R"S5 SnAGMCSnAff=f!UR*U4az [RR-[RR/[RS55Sn
[SR1U
[R2S95 gf=f)z@Command-line interface (looks at sys.argv to decide what to do).rNc��\rSrSrSrg)�cli.<locals>.BadUsagei�
rN)r/r!r"r�r�rrr�BadUsager�
s��trrrZzbk:n:p:wFr�z-bTz-kz-pz-wz-n)r�r�zfile %r does not exist)ra�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} -n <hostname>
    Start an HTTP server with the given hostname (default: localhost).

{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.  This option can be used in
    combination with -n and/or -p.

{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.
)r�r�)�getoptr$rrrr2r�r�rr�existsr
r�r�rrrrrr!rr�rrrhr�)rr�optsr.�writing�start_serverr�rlr��opt�val�argr�r�s              r�clir�
s����#�9�#���M!��]�]�3�8�8�A�B�<��<�
�������������H�C��d�{�#��#���d�{������d�{�#�����d�{����d�{�#����� ��4��F���8�^��C��c�{�{�2�7�7�>�>�#�#6�#6��.��4�5������
��#�;�;�2�7�7�>�>�#�#6�#6�$�S�/�C���c�{�{�r�w�w�}�}�S�'9�'9�!�#�� ��
��I�I�c�$�I�/��� �!2�3�
��e���������
��
�L�L�(�#�!��g�g���r�w�w�/�/������<�=�a�@��
��:�F�s����F��;	!�!�si�AG<�2G<�G<�&A'G<�BF<�G<�F<� G<�"F<�6G<�<G9�!G4�-G<�4G9�9G<�<B	J�Jr<r�r�)r)� Python Library Documentation: %srN)rrNF)rQN)rV)irFr�r�r�r�r�rY�importlib._bootstrapr��importlib._bootstrap_external�importlib.machinery�importlib.utilr%rArr�r�rSrrNr�r��urllib.parser�r��collectionsr�reprlibr�	tracebackr�
_pyrepl.pagerrrr	r
rr�getpager�	pipepager�
plainpager�
tempfilepager�ttypagerrr*rDr=rOrWr`rnrrrur|r�r�r��
IGNORECASEr�r�r�r�r�r��all_feature_namesr�r�r�r�r�r�rr$rrr$r&rQr�r�r�r�r�r�rr~rrrr
rCrrr rr3r2r�r�r�r�r	rrr/rrr�<module>r+sd��%�L�(��
)�
��������$����	�	���	�
��������+�C�C����	�
�
��
���

��0�d
�!� A�
 ��*�%�G����j�j�5�r�}�}�E��(�

���"�J�8�8�9��(�2�
���" �%�NK�	�K�&+�$ !��(�X6�6�t(�t�(�TM	7�c�M	7�b:�t�:�@N�c�N�`�G��� �6�*�y���O�	��y��>�KL��C�6DE�!��2#��]�]�~�x��;�;�z
<�V�riP�X (�4�+� (�J6��8#�T!�l�z���E�r

?>