����JFIF���������
1#@!#!123s
D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
python312
/
lib64
/
python3.12
/
__pycache__
/
Filename :
pydoc.cpython-312.pyc
back
Copy
� ����5[Yhr���������������������������d�Z�dgZdZdZdZddlZddlZddlZddlZ ddl Z ddlZ ddlZ ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ�ddlmZ�dd lmZ�d ��Z d��Z!d��Z"d ��Z#d��Z$d��Z%d��Z&d��Z'd��Z(d��Z)d��Z*d��Z+�ejX������������������dejZ�������������������������Z.d��Z/d��Z0d��Z1d��Z2�e3ejh�������������������������Z5dPd�Z6d��Z7d��Z8d��Z9d��Z:i�fd �Z;�G�d!��d"e<�������Z=d#��Z>di�fd$�Z?�G�d%��d&�������Z@�G�d'��d(e�������ZA�G�d)��d*e@�������ZB�G�d+��d,e�������ZC�G�d-��d.e@�������ZD�G�d/��d0eD�������ZEd1��aFd2��ZGd3��ZHd4��ZId5��ZJd6��ZKd7��ZLd8��ZMd9��ZNdQd:�ZO�eD��������ZP�eE��������ZQ�eB��������ZRdQd;�ZS � �dRd<�ZT � �dSd=�ZUdQd>�ZVdTd?�ZW�G�d@��dA�������ZX�eX��������ZY�G�dB��dC�������ZZdD��Z[dE��Z\dUdF�Z]dQdGdHdI�dJ�Z^dK��Z_dL��Z`dM��ZadN��ZbecdOk(��r�eb���������yy)Va��Generate Python documentation in HTML or text for interactive use. At the Python interactive prompt, calling help(thing) on a Python object documents the object, and calling help() starts up an interactive help session. Or, at the shell command line outside of Python: Run "pydoc <name>" to show documentation on something. <name> may be the name of a function, module, package, or a dotted reference to a class or function within a module or module in a package. If the argument contains a path segment delimiter (e.g. slash on Unix, backslash on Windows) it is treated as the path to a Python source file. Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines of all available modules. Run "pydoc -n <hostname>" to start an HTTP server with the given hostname (default: localhost) on the local machine. Run "pydoc -p <port>" to start an HTTP server on the given port on the local machine. Port number 0 can be used to get an arbitrary unused port. Run "pydoc -b" to start an HTTP server on an arbitrary unused port and open a web browser to interactively browse documentation. Combine with the -n and -p options to control the hostname and port used. Run "pydoc -w <name>" to write out the HTML documentation for a module to a file named "<name>.html". Module docs for core modules are assumed to be in https://docs.python.org/X.Y/library/ This can be overridden by setting the PYTHONDOCS environment variable to a different URL or to a local directory containing the Library Reference Manual pages. �helpzKa-Ping Yee <ping@lfw.org>z26 February 2001z�Guido van Rossum, for an excellent programming language. Tommy Burnette, the original creator of manpy. Paul Prescod, for all his work on onlinehelp. Richard Chamberlain, for the first implementation of textdoc. �����N)�deque)�Repr)�format_exception_onlyc�������������������J����g�}�g�}t���������j������������������D�]���}t��������j������������������j������������������|xs�d�������}t��������j������������������j ������������������|�������}||vs�Jt��������j������������������j������������������|�������s�j|�j ������������������|��������|j ������������������|�����������|�S�)zAConvert sys.path into a list of absolute, existing, unique paths.�.)�sys�path�os�abspath�normcase�isdir�append)�dirs�normdirs�dir�normdirs��� �,/opt/alt/python312/lib64/python3.12/pydoc.py�pathdirsr���S���sz������ �D��H��x�x���g�g�o�o�c�j�S�)���'�'�"�"�3�'���(�"�r�w�w�}�}�S�'9��K�K����O�O�G�$�����K�����c������������������������t���������j������������������j������������������|�j�������������������������}|�y�|�j������������������j������������������d�������d�d�D�]��}t ��������||�������}��t��������j������������������|�������sy�|S�)Nr������) r ����modules�get� __module__�__qualname__�split�getattr�inspect�isclass)�func�cls�names��� r���� _findclassr$���_���sb������ �+�+�/�/�$�/�/� *�C� �{���!�!�'�'��,�S�b�1���c�4� ���2��?�?�3����Jr���c������������������~����t��������j������������������|��������rl|�j������������������j������������������}|�j������������������}t��������j ������������������|�������r't ��������t ��������||d��������d�������|�j������������������u�r|}�n�|j������������������}�n�t��������j������������������|��������r)|�j������������������}t��������|��������}|�t ��������||�������|�u�rCy�t��������j������������������|��������r\|�j������������������}|�j������������������}t��������j ������������������|�������r"|j������������������dz���|z���|�j������������������k(��r|}n�|j������������������}n�t��������|�t���������������r4|�j������������������}|j������������������}t��������|�������}|�t ��������||�������|�ur�y�t��������j������������������|��������st��������j ������������������|��������rb|�j������������������}|�j"������������������}t ��������||�������|�ury�t��������j$������������������|��������r't ��������|dd��������}t��������|t&���������������r ||v�r||���S�y�|j(������������������D�]��} �t+��������t ��������||��������������}|��|c�S��y�#�t,��������$�r�Y��-w�xY�w)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"���r!����slots�base�docs��� r����_finddocr>���i���s������������|�|�$�$���|�|���O�O�D�!��G�D�$��-�z�:�c�l�l�J��C��.�.�C� � � �C� ��|�|����o���;�'�#�t�,�C�7�� � � �3� ��|�|���|�|���O�O�D�!�����#�d�*�c�.>�.>�>��C��.�.�C� �C�� "��x�x���}�}�������;�'�#�t�,�C�7�� � #� #�C� (�G�,D�,D�S�,I��|�|�������3���S�(���%�%�c�*��C��d�3�E��%��&�4�5�=��T�{�"������ ��W�T�4�0�1�C���?��J� ����� ��� �� �s����H0�0 H<�;H<c����������������������� �t���������j������������������|�d�������}|�y|�t��������ur+t��������|��������j������������������}t ��������|t ���������������r||k(��ry|S�#�t��������$�r�Y�yw�xY�w)zUGet the documentation string for an object if it is not inherited from its class.�__doc__N)�object�__getattribute__�typer@���r.����strr8���)r9���r=����typedocs��� r���r7���r7�������sa������ ��%�%�c�9�5���;���d�?��3�i�'�'�G��'�3�'�G�s�N��� �������s����A��2A��A�� A�Ac�����������������������t��������|��������}|� �t��������|��������}t ��������|t ���������������syt ��������j������������������|�������S�#�t��������t��������f$�r�Y�yw�xY�w)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)r7���r>���r8���� TypeErrorr.���rD���r����cleandoc)rA���r=���s��� r����_getdocrI�������s[��������V� �C� �{� ��6�"�C���c�3������C� � �� �� �*�� �� �s����A����A�Ac�����������������������t��������|��������xs�t��������j������������������|��������}|xr%�t��������j������������������dd|j���������������������������������xs�dS�)z-Get the doc string or comments for an object.z^ * ��)rI���r����getcomments�re�sub�rstrip)rA����results��� r����getdocrQ�������s>������ �V�_� ;�� 3� 3�F� ;�F��:�b�f�f�W�b�&�-�-�/�:�@�b�@r���c����������������������|�j��������������������������j������������������d�������}t��������|�������dk(��r|d���dfS�t��������|�������dk\��r,|d���j��������������������������s|d���dj ������������������|dd��������fS�ddj ������������������|�������fS�)z>Split a doc string into a synopsis line (if any) and the rest.� ����r���rK�������N)�stripr����lenrO����join)r=����liness��� r����splitdocrZ�������s{�������I�I�K���d�#�E� �5�z�Q���Q�x��|�� �U��q���q����!2��Q�x����5���9�-�-�-� �t�y�y����r���c������������������`�����|�j�������������������}|�j������������������|k7��r|�j������������������dz���|z���}|S�)z@Get a class name and qualify it with a module name if necessary.r���)r)���r����rA����modnamer#���s��� r���� classnamer^�������s3�������?�?�D� ���G�#�� � �3�&��-���Kr���c������������������������d|�j�������������������v�rM|�j�������������������j������������������d�������d���}|�j������������������|k7��r|�j�������������������|�j������������������dz���|z���S�|S�|�j������������������|k7��r|�j������������������S�y)z_Get a name of the enclosing class (qualified it with a module name if necessary) or module.r���r���N)r���� rpartitionr���r\���s��� r���� parentnamera�������s���������f�!�!�!��"�"�-�-�c�2�1�5������'�F�,=�,=�,I��$�$�s�*�T�1�1��K�����'��$�$�$��(r���c����������������������t��������j������������������|��������xsq�t��������j������������������|��������xsZ�t��������j������������������|��������xsC�t��������j������������������|��������xs,�t��������j ������������������|��������xs�t��������j������������������|���������S�)z>Check if an object is of a type that probably means it's data.)r����ismoduler ���� isroutine�isframe�istraceback�iscode)rA���s��� r����isdatarh�������sy������� � ��(��F�G�O�O�F�,C��F��!�!�&�)�F�-4�_�_�V�-D�F��#�#�F�+�F�/6�~�~�f�/E�G��Gr���c������������������f�����|r.|d���j������������������|�j������������������|d�����������������}�|dd�}|r�.|�S�)z/Do a series of global replacements on a string.rT���r���rU���N)rX���r���)�text�pairss��� r����replacerl�������s;������ ��Q�x�}�}�T�Z�Z��a��1�2���a�b� ������Kr���c�����������������������t��������|��������|kD��r>t��������d|dz ��dz���������}t��������d|dz ��|z ���������}|�d|�dz���|�t��������|��������|z ��d�z���S�|�S�)zCOmit part of a string if needed to make it fit in a maximum length.r�������rU���N�...)rW����max)rj����maxlen�pre�posts��� r����cramrt�������s`������ �4�y�6���!�f�Q�h��]�#���1�f�Q�h�s�l�#���D�S�z�E�!�D��T��4���$9�9�9��Kr���z at 0x[0-9a-f]{6,16}(>+)$c������������������.�����t���������j������������������d|��������S�)z>Remove the hexadecimal id from a Python object representation.z\1)�_re_stripidrN����rj���s��� r����stripidrx�������s��������?�?�5�$�'�'r���c�����������������������t��������j������������������|��������ryt��������j������������������|��������r)t��������|�dd�������}t��������j������������������|�������xs�|du��S�y)zo Returns True if fn is a bound method, regardless of whether fn was implemented in Python or in C. Tr*���NF)r���r(���r-���r���rc���)�fnr:���s��� r����_is_bound_methodr{�������sQ������ �������������r�:�t�,���$�$�T�*�<�t�t�|�=�=�r���c������������������ ����i�}t��������j������������������|�t���������j�������������������������D�] ��\��}}d||<�����|�j������������������D�]��}|j ������������������t��������|�����������������|j ��������������������������D�]��}t��������|�|�������||<�����|S��NrT���)r���� getmembersrd���� __bases__�update� allmethods�keysr���)�cl�methods�key�valuer<���s��� r���r����r������sv�������G��(�(��W�->�->�?� ��U������@��������z�$�'�(����|�|�~���r�3�'�������Nr���c������������������v�����g�}g�}|�D�]-��}�||�������r|j������������������|���������|j������������������|���������/�||fS�)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�Nr���c������������������*����|�dv�ry|�j������������������d�������r|�j������������������d�������ry|�j������������������d�������r t��������|d�������ry|t��������ur.|�t��������v�r&t��������t ��������||�d�������t��������j�������������������������ry |�|�|v�S�|�j������������������d��������S�) z3Decide whether to show documentation on a variable.>���r@����__date__�__file__r)����__path__�__spec__r'���� __author__� __cached__� __loader__r����__credits__�__package__�__version__�__builtins__r���r����__rT����_�_fieldsTNF)� startswith�endswith�hasattr� __future__�_future_feature_namesr.���r����_Feature)r#����allr9���s��� r����visiblenamer����"��s����������H��H������t�����t�!4�Q����s����Y� 7�� �*���)>�!>��g�c�4��.� �0C�0C�D�� ���s�{���?�?�3�'�'�'r���c����������������������g�}t��������j������������������|��������D�]d��\��}}}}t��������j������������������|�������r!d}t��������|t���������������r!|j �������������������d}n|dk(��r t ��������|�������rd}|j������������������||||f���������f�|S�)zUWrap inspect.classify_class_attrs, with fixup for data descriptors and bound methods.�data descriptor�readonly property�method� static method)r����classify_class_attrsr2���r.���r/����fsetr{���r���)rA����resultsr#����kindr"���r����s��� r���r����r����:��s��������G�$+�$@�$@��$H� ��t�S�%��#�#�E�*�$�D��%��*�u�z�z�/A�*�� �X� �"2�5�"9�"�D�����d�C��/�0��%I���Nr���c����������� ��������������t��������|dg��������} �t��������|�������D���ci�c]��\��}}||t��������|�������z �����c}}��fd�}|�j ������������������|���������yc�c}}w�#�t��������$�r�i��Y��+w�xY�w)zGSort the attrs list in-place by _fields and then alphabetically by namer����c������������������8�������j������������������|�d���d�������|�d���fS��Nr���)r���)�attr�field_orders��� �r����<lambda>z!sort_attributes.<locals>.<lambda>P��s�������K�O�O�D��G�Q�7��a��Ar����r����N)r���� enumeraterW���rG����sort)�attrsrA����fields�ir#����keyfuncr����s��� @r����sort_attributesr����G��st���������V�Y�� +�F��=F�v�=N�O�=N� ��D�t�a��F��m�+�=N�O���B�G� �J�J�7�J��� �P��������s!����A��A�A��A��A'�&A'c������������������������t���������j������������������j������������������|��������rIdD�]D��}t���������j������������������j������������������t���������j������������������j ������������������|�d|z�����������������s�D�y�y)z3Guess whether a path refers to a package directory.)z.pyz.pyc�__init__TF)r���r ���r����isfilerX���)r ����exts��� r���� ispackager����U��sH������ �w�w�}�}�T��"�C��w�w�~�~�b�g�g�l�l�4��c�1A�B�C���#��r���c�����������������������d} �t��������j������������������|�j�������������������������}|D��]��\��}}}}}|t���������j������������������k(��r||z ��}�#|t���������j������������������k(��r�t��������j��������������������������5��t��������j������������������dt����������������t��������j������������������|�������}ddd��������t��������t���������������s�y|j��������������������������j������������������d�������d���j��������������������������c�S�|t���������j������������������k(��r |dv�r||z ��}��|t���������j ������������������t���������j"������������������t���������j$������������������fvs���y� �y#�1�sw�Y�����xY�w#�t���������j&������������������t(��������t*��������f$�r�Y�yw�xY�w)z8Return the one-line summary of a file object, if presentrK����ignoreNrS���r���)�(�))�tokenize�generate_tokens�readline�STRING�NEWLINE�warnings�catch_warnings�simplefilter� SyntaxWarning�ast�literal_evalr.���rD���rV���r����OP�COMMENT�NL�ENCODING� TokenError�UnicodeDecodeError�SyntaxError)�file�string�tokens�tok_type� tok_stringr����� docstrings��� r����source_synopsisr����]��s/�������F���)�)�$�-�-�8��-3�)�H�j�!�Q���8�?�?�*��*�$���X�-�-�-��,�,�.��)�)�(�M�B� #� 0� 0�� 8�I��/��"�)�S�1�� ���(�.�.�t�4�Q�7�=�=�?�?��X�[�[�(�Z�:�-E��*�$���(�"2�"2�H�K�K��AR�AR�!S�S���.4�"���/�.��� ���!3�[�A�����sC����A+E��/0E��E��91E��+AE��;E��=E���E �E��E-�,E-c������������������t����t��������j������������������|��������j������������������}|j������������������|�d�������\��}}|�||k���rY|�j ������������������t��������t��������j������������������j��������������������������������rt��������j������������������j������������������}nO|�j ������������������t��������t��������j������������������j��������������������������������rt��������j������������������j������������������}nd}|�- �t��������j������������������|��������}|5��t��������|�������}ddd��������n��|d|��������}t��������j ������������������j#������������������d|�|��������} �t��������j$������������������j'������������������|�������} t(��������j*������������������d=�| j,������������������r| j,������������������j/��������������������������d���nd}||f||�<���|S�#�t��������$�r�Y�yw�xY�w#�1�sw�Y����!xY�w#��Y�yxY�w)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�ExtensionFileLoaderr�����open�OSErrorr�����util�spec_from_file_location� _bootstrap�_loadr ���r���r@���� splitlines) �filename�cache�mtime� lastupdaterP���� loader_clsr����r�����spec�modules ��� r����synopsisr����v��sz������G�G�H��&�&�E����8�\�:��J����Z�%�/����U�9�#6�#6�#H�#H�I�J�"�,�,�A�A�J� � � �u�Y�%8�%8�%K�%K�L� M�"�,�,�@�@�J��J��� ��}�}�X�.�� ��(��.������ � �H�5�F��>�>�9�9�*�h�AG��:��I�D� �"�-�-�3�3�D�9������J�'�7=�~�~�V�^�^�.�.�0��3�4�F� �&�/��h���M��)��� �� ������ ��s*����F��3F'�4F3�� F$�#F$�'F0�3F7c�������������������������e�Zd�ZdZd��Zd��Zy)�ErrorDuringImportzEErrors that occurred while trying to import something to document it.c����������������������t��������|t���������������sBt��������|t���������������sJ��t��������|�������|�_��������||�_��������|j������������������|�_��������||�_��������y�t��������j������������������dt����������������|\��|�_��������|�_��������|�_��������||�_��������y�)NzCA tuple value for exc_info is deprecated, use an exception instance)r.���r����� BaseExceptionrC����excr����� __traceback__�tbr�����warn�DeprecationWarningr����)r:���r�����exc_infos��� r���r����zErrorDuringImport.__init__���ss�������(�E�*��h� �6�6�6��H�~�D�H�!�D�J��,�,�D�G��!�� � � �M�M�_�,� .��-5�)�D�H�d�j�$�'� �� r���c������������������l�����|�j�������������������j������������������}d|�j�������������������d|�d|�j��������������������S�)Nzproblem in � - z: )r���r)���r����r����)r:���r���s��� r����__str__zErrorDuringImport.__str__���s&�������h�h����+/�=�=�#�t�z�z�J�Jr���N)r)���r���r���r@���r����r����r���r���r����r�������s������O�!�Kr���r����c������������������x����t���������j������������������j������������������}t��������|�d�������5�}||j ������������������t��������|��������������k(��}ddd��������t��������j������������������j������������������|��������}t��������j������������������j������������������|�������\��}}r!t���������j������������������j������������������||��������}n t���������j������������������j������������������||��������}t���������j������������������j������������������||�|��������} �t���������j������������������j������������������|�������S�#�1�sw�Y�����xY�w#�t ��������$�r} t#��������|�| ��������d} ~ ww�xY�w)z<Import a Python source file or compiled file given its path.�rbNr����)r����r�����MAGIC_NUMBERr�����readrW���r���r ����basename�splitext�_bootstrap_externalr�����SourceFileLoaderr����r����r����r����r����) r ����magicr�����is_bytecoder����r#���r����r����r�����errs ��� r���� importfiler�����s��������N�N�'�'�E� �d�D� �T��t�y�y��U��4�4��� ��w�w����%�H���� � ��*�I�D�#���.�.�C�C�D�$�O���.�.�?�?��d�K���>�>�1�1�$��V�1�L�D�+��#�#�)�)�$�/�/�� � �����+���c�*�*��+�s#����D�4D��D� D9�(D4�4D9c���������������������� �|r�|�t���������j������������������v�rv|�t���������j������������������vrdt���������j������������������D��cg�c]��}|j������������������|�dz����������s�|���}}|�g|z���D�])��}t���������j������������������|���||<���t���������j������������������|=��+�t ��������j ������������������|��������}|S�c�c}w�#�t��������$�r�}|�t���������j������������������v�r't��������t���������j������������������|����j������������������|��������t��������|�������t��������u�rt��������|j������������������|��������t��������|t���������������r|j������������������|�k(��rY�d}~yt��������|�|��������d}~ww�xY�w)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).r���N)r ���r����builtin_module_namesr����r����� import_moduler����r����r����rC���r����r����r.����ImportErrorr#���)r ���� forceloadr�����m�subsr����r����r��s��� 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�#�.�.�� /�s6����8B(��B#�B#�A B(��#B(��( E�1A?E�5E�Ec�������������������������e�Zd�Zej������������������j������������������ddej������������������dd�z���������Zd d�Z d d�Z e xZxZxZ xZxZZ�ej$������������������d�������fd�Zy) �Doc� PYTHONDOCSz%https://docs.python.org/%d.%d/libraryNrU���c������������������p����||f|z���} �t��������j������������������|�������r�|�j������������������|��S�t��������j������������������|�������r�|�j������������������|��S�t��������j ������������������|�������r�|�j������������������|��S� �t��������j������������������|�������r�|�j������������������|��S��|�j������������������|��S�#�t��������$�r�Y��>w�xY�w)z%Generate documentation for an object.)r���rc���� docmoduler ����docclassrd���� docroutiner8���r2����docdata�docother)r:���rA���r#����argss��� r����documentzDoc.document���s���������~��$�� �����'������0E�)E����v�&�}�t�}�}�d�/C�(C�� � ��(�����$�1G�*G�(���#�#�F�+�L�D�L�L�$�4G�-G��t�}�}�d�#�#����� �� �s����#B)��#B)��#B)��) B5�4B5c������������������n�����d|xr�dt��������|�������z����dt��������|�������j��������������������}t��������|��������)z+Raise an exception for unimplemented types.z!don't know how to document object� z of type )�reprrC���r)���rG���)r:���rA���r#���r'���messages��� r����failzDoc.fail��s6������� �%�S�4��:�%�%�t�F�|�'<�'<�>���� � r����stdlibc����������������������� �t��������j������������������|�������}t��������j������������������j������������������d|�j�������������������������}t��������j������������������j������������������|�������}t��������|t��������t����������������������r�|j������������������dv�s@|j������������������|�������r�|j������������������t��������j������������������j������������������|d��������������s�|j������������������dvr�|j������������������d�������r;dj������������������|j������������������d�������|j������������������j!���������������������������������}|S�t��������j������������������j������������������||j������������������j!��������������������������d z����������}|S�d }|S�#�t��������$�r�d}Y���Yw�xY�w)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���� getabsfilerG���r����environr���r ��r ���r ���r.���rC���r)���r����rX����formatrO����lower)r:���rA����basedirr�����doclocs��� r���� getdoclocz Doc.getdocloc��s)����� ��%�%�f�-�D��������d�o�o�>���'�'�"�"�7�+���v�t�B�x�(� �_�_��!9��9���o�o�g�&��/�/�"�'�'�,�,�w��"H�I��O�O�#M�M�� � �!8�9�%�,�,�V�]�]�3�-?����AV�AV�AX�Y�� �� �������f�f�o�o�.C�.C�.E��.O�P���� ���F�� ��'��� ��D� �s����E"��"E1�0E1�N)r)���r���r���r���r<��r���r ����version_infor ��r(��r-��r"��r#��r$��r&���docpropertyr%��� sysconfig�get_pathrA��r ��r���r���r��r�����so������������ G�"%�"2�"2�2�A�"6�!7�8�J�$� !��LP�O�I�O��O�:�O��O�;��(:� �(:�(:�8�(D��r���r��c��������������������<�����e�Zd�ZdZd��Zd��Zd��Zd��Zd��ZeZ d��Z eZy) �HTMLReprzBClass for safely making an HTML representation of a Python object.c������������������t�����t��������j������������������|���������dx|�_��������|�_��������d|�_��������dx|�_��������|�_��������y��N����� ����d����r���r�����maxlist�maxtuple�maxdict� maxstring�maxother�r:���s��� r���r����zHTMLRepr.__init__*���1������� � �d��')�)���t�}����),�,����r���c����������� �������$�����t��������|dddddd�������S�)N�&z&�<z<�>z>)rl����r:���rj���s��� r����escapezHTMLRepr.escape0��s�������t�S�'�3���V�D�Dr���c������������������.�����t��������j������������������|�|�������S�rB��)r���r+���r:���rA���s��� r���r+��z HTMLRepr.repr3��s�������y�y��v�&�&r���c����������� �������B����t��������t��������|�������d�������rTddj������������������t��������|�������j������������������j ���������������������������������z���}t��������|�|�������r�t��������|�|�������||�������S�|�j ������������������t��������t��������t��������|��������������|�j��������������������������������S��Nr)����repr_r����)r����rC���rX���r)���r���r���r[��rt���rx���r+��rS���r:���r�����level� methodnames��� r����repr1zHTMLRepr.repr16��sy�������4��7�J�'� �3�8�8�D��G�,<�,<�,B�,B�,D�#E�E�J��t�Z�(�0�w�t�Z�0��E�:�:��{�{�4���Q�� 0�$�-�-�@�A�Ar���c�����������������������t��������||�j�������������������������}t��������|�������}d|v�r/dt��������|dd�������vr d|d���z���|�j ������������������|�������z���|d���z���S�t��������j������������������dd|�j ������������������|��������������S�)N�\�\\rK����rr���z-((\\[\\abfnrtv\'"]|\\[0-9]..|\\x..|\\u....)+)z<span class="repr">\1</span>)rt���rR��r+��rl���r[��rM���rN����r:���r����rb���test�testreprs��� r����repr_stringzHTMLRepr.repr_string=��s}�������A�t�~�~�&����:���4�<�D���%��(D�D����!��$�t�{�{�4�'8�8�8�A�;�F�F��v�v�F�5��k�k�(�+�-�� -r���c����������� ������������� �|�j������������������t��������t��������t��������|��������������|�j��������������������������������S�#��|�j������������������d|j ������������������j������������������z���������cY�S�xY�w�Nz <%s instance>)r[��rt���rx���r+��rR��r+���r)����r:���r����rb��s��� r���� repr_instancezHTMLRepr.repr_instanceJ��sQ������ G��;�;�t�G�D��G�$4�d�n�n�E�F�F�� G��;�;�����1E�1E�E�F�F�s ����69��*A%N)r)���r���r���r@���r����r[��r+��rd��rl���repr_strrp���repr_unicoder ��r���r���rH��rH��(��s4������L�-�E�'�B� -���H�G���Lr���rH��c������������������������e�Zd�ZdZ�e��������Zej������������������Zej������������������Zd��Zdd�Z � �dd�Z d��Zd��Zd��Z d ��Zd ��Zd��Zd��Zd ��Zd��Zd��Zdi�i�i�fd�Zdd�Zdd�Zddi�i�fd�Zd��Zddi�i�i�ddfd�Zdd�ZeZdd�Zdd�Zy)�HTMLDocz'Formatter class for HTML documentation.c�����������������������d|�d|�d�S�)�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����pagezHTMLDoc.page[��s��������H�&�� &r���c�����������������������d|�d|xs�d�d�S�)zFormat a page heading.zU <table class="heading"> <tr class="heading-text decor"> <td class="title"> <br>z</td> <td class="extra">� z</td></tr></table> r ��)r:���rw���extrass��� r����headingzHTMLDoc.headingg��s��������&�$�H�$�&�� &r���Nc�����������������������|�dd|z��z���dz���}d|�d|�d�}|r|d|�d|�d |�d |�d|�d�z���}n|d|�d |�d|�d�z���}|d|z��z���S�)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> <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:���rw��r"���rx���width�prelude� marginalia�gaprP���s ��� r����sectionzHTMLDoc.sectionp��s{���������.��E�1A�A�I�M�J�� ��� �� �����:�s�G�S�:��:�F� ��8;�Z��N��N�F���I�H�T�T�Tr���c������������������2�����d|z��}�|�j�������������������|g|����S�)z$Format a section with a big heading.z&<strong class="bigsection">%s</strong>)r���)r:���rw��r'��s��� r���� bigsectionzHTMLDoc.bigsection���s"������8�5�@���t�|�|�E�)�D�)�)r���c������������������f�����|�j������������������|j���������������������������������}t��������|dddddddd� ������S�)z!Format literal preformatted text.� z r*��r{��rS����<br> )r[��� expandtabsrl���rZ��s��� r���� preformatzHTMLDoc.preformat���s7�������{�{�4�?�?�,�-���t�V�W�f�g� �(�D�(�<�� <r���c������������������������d}t��������|�������dz���dz��}t��������d�������D�]F��}|dz���}t��������||z��||z��|z����������D�]"��}|t��������|�������k��s�|�|||����������z���dz���}�$�|dz���}�H�d|z��S�)z0Format a list of items into a multi-column list.rK���rn�������z<td class="multicolumn">r���r��z<table><tr>%s</tr></table>)rW����range)r:����listr=��rP����rows�colr����s��� r����multicolumnzHTMLDoc.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�4r���c�����������������������d|z��S�)Nz<span class="grey">%s</span>r ��rZ��s��� r����greyzHTMLDoc.grey���s ������!?�$�!F�Fr���c������������������8�����|D�]��}||v�s�d||����d|�d�c�S��|S�)z:Make a link for an identifier, given name-to-URL mappings.� <a href="�">�</a>r ��)r:���r#����dictsr5���s��� r����namelinkzHTMLDoc.namelink���s)�������D��t�|�04�T� �D�A�A�����r���c����������� ������������|j�������������������t��������j������������������j������������������|j�������������������������}}t��������||�������r.t ��������||�������|u�r d|j��������������������d|�dt��������||��������d�S�t��������||�������S�)zMake a link for a class.r����.html#r���r���)r)���r ���r���r���r���r����r���r^���)r:���rA���r]���r#���r����s��� r���� classlinkzHTMLDoc.classlink���se���������������8I�8I�(J�f���6�4� �W�V�T�%:�f�%D�����y���'A�C�� C����)�)r���c�����������������������d}|j�������������������t��������j������������������j������������������|j�������������������������}}t��������||�������rt ��������||�������|u�rqd|j������������������v�rE|j������������������j������������������d�������d���}|j������������������|k7��r|j��������������������d|��}n$d|z��}n|j������������������|k7��rd|j�������������������z��}|rd|�dt��������||��������d �S�t��������||�������S�) z.Make a link for the enclosing class or module.Nr���r���r���z#%s�%s.htmlr���r���r���) r)���r ���r���r���r���r����r���r���r`���ra���)r:���rA���r]����linkr#���r����s��� r���� parentlinkzHTMLDoc.parentlink���s������������������8I�8I�(J�f���6�4� �W�V�T�%:�f�%D��f�)�)�)��*�*�5�5�c�:�1�=���$�$��/�+1�?�?�D�A�D� �4�<�D��$�$��/�$�v���6�D��,0�*�V�W�2M�N�N��f�g�.�.r���c������������������<�����d|j��������������������d|j��������������������d�S�)zMake a link for a module.r����.html">r���)r)���r]��s��� r���� modulelinkzHTMLDoc.modulelink���s������-3�_�_�f�o�o�N�Nr���c������������������|�����|\��}}}}|r|�j������������������|�������S�|r |�d|�d�}nd|z��}|rd|z��}n|}d|�d|�d�S�)z;Make a link for a module or package to display in an index.r���r:��r���z"<strong>%s</strong> (package)r���r���r���)r���)r:���� modpkginfor#���r ���r�����shadowed�urlrj���s��� r���� modpkglinkzHTMLDoc.modpkglink���sV������*4�'��d�I�x���9�9�T�?�"��"&��-�C��d�"�C��7�$�>�D��D��(+�T�2�2r���c�����������������������d|�d|�d�S�)zMake a link to source file.z<a href="file:r���r���r ��)r:���r���r ���s��� r����filelinkzHTMLDoc.filelink���s ������-0�$�7�7r���c�����������������������|xs�|�j�������������������}g�}d}t��������j������������������d�������}|j������������������||�������x} �r�| j ��������������������������\��} }|j�������������������|||| ����������������| j ��������������������������\��}} }}}}| r1�||�������j������������������dd�������}|j������������������d|�d|�d���������n�|r-dt��������|�������z��}|j������������������d|�d�||��������d���������n�|r-d t��������|�������z��}|j������������������d|�d�||��������d���������n�|rE|||d z����dk(��r%|j������������������d|�j������������������||�������z�����������ne|j������������������d |z����������nP|||d z����dk(��r$|j������������������|�j������������������||||���������������n!|j������������������|�j������������������||���������������|}|j������������������||�������x} r���|j�������������������|||d����������������dj������������������|�������S�)z�Mark up some plain text, given a context of symbols to look for. Each context dictionary maps object names to anchor names.r���zJ\b((http|https|ftp)://\S+[\w/]|RFC[- ]?(\d+)|PEP[- ]?(\d+)|(self\.)?(\w+))�"z"r���r���r���z(https://www.rfc-editor.org/rfc/rfc%d.txtz!https://peps.python.org/pep-%04d/rT���r����zself.zself.<strong>%s</strong>NrK���)r[��rM����compile�search�spanr����groupsrl����intr���rX���)r:���rj���r[���funcs�classesr����r�����here�pattern�match�start�endr�����scheme�rfc�pep�selfdotr#���r���s��� r����markupzHTMLDoc.markup���s��������&�4�;�;�������*�*��3��4����~�~�d�D�1�1�e�1�����J�E�3��N�N�6�$�t�E�"2�3�4�38�<�<�>�0�C���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��c�#�a�%��C�'����t�}�}�T�7�E�7�K�L����t�}�}�T�7�;�<��D�3��~�~�d�D�1�1�e�1�4� ���v�d�4�5�k�*�+��w�w�w��r���c������������������t����d}|D�]���}t��������|t���������������rq|\��}}|dz���}||�j������������������||�������z���}|rJ||fk7��rDg�}|D�]#��} |j������������������|�j������������������| |����������������%�|dz���dj ������������������|�������z���dz���}|dz���}��t��������|t ���������������s��|d|�j ������������������||�������z��z���}���d|z��S�) zAProduce HTML for a class tree as given by inspect.getclasstree().rK���z<dt class="heading-text">r�����, r����z </dt>z <dd> %s</dd> z <dl> %s</dl> )r.���r����r���r���rX���r���� formattree) r:����treer]����parentrP����entry�c�bases�parentsr<���s ��� r���r���zHTMLDoc.formattree���s����������E��%��'� ���5��"=�=���$�.�.��G�"<�<���U�v�i�/� �G� %�����t�~�~�d�G�'D�E��!&�#�c�\�D�I�I�g�,>�>��D�F��)�+���E�4�(��"3�d�o�o��7�A�7'��#'��'�����!�6�)�)r���c����������� �������� ������|j�������������������} �|j������������������}|j������������������d�������}g�}t ��������t��������|�������dz ���������D�]2��}|j ������������������ddj������������������|d|dz������������d||����d����������4�dj������������������||dd�z����������} d| z��} �t��������j������������������|�������}t��������j������������������j������������������|�������}��j������������������||�������} g�}t��������|d �������r[t!��������|j"�������������������������}|dd�dk(��r|dd�d k(��r|dd�j%��������������������������}|j ������������������d��j'������������������|�������z����������t��������|d�������r3|j ��������������������j'������������������t!��������|j(����������������������������������������|r| ddj������������������|�������z��z���} ��j+������������������|�������}|�dt-����������������z��}nd}��j/������������������| d| z���|z����������}t��������j0������������������|t��������j2�������������������������}g�i�}}t��������j0������������������|t��������j4�������������������������D�]Q��\��}}|�t��������j6������������������|�������xs�||u�s�$t9��������|||�������s�2|j ������������������||f��������d|z���x||<���||<����S�|D�]���\��}}|j:������������������D�]s��}|j�������������������|j<������������������}}t>��������j@������������������jC������������������|�������}||k7��s�@|s�Ct��������||�������s�PtE��������||�������|u�s�_||vs�d|dz���|z���x||<���||<����u����g�i�}}t��������j0������������������|t��������jF�������������������������D�]{��\��}}|�-t��������jH������������������|�������st��������j6������������������|�������|u�s�5t9��������|||�������s�C|j ������������������||f��������d|z���||<���t��������jJ������������������|�������s�t||���||<����}�g�}t��������j0������������������|tL���������������D�]&��\��}}t9��������|||�������s�|j ������������������||f���������(���jO������������������tQ��������|���������jR������������������||�������}|xr�d|z��}|d|z��z���}t��������|d�������r�g�}tU��������jV������������������|jX�������������������������D�]��\��}}} |j ������������������||| df����������|j[�����������������������������j]������������������|��j^�������������������������}!|��ja������������������dd|!�������z���}n-|r+��j]������������������|��fd��������}!|��ja������������������dd|!�������z���}|r�|D���cg�c]��\��}}|�� �}"}}��jc������������������t��������jd������������������|"d�������|�������g}!|D�])��\��}}|!j ��������������������jg������������������|||||����������������+�|��ja������������������d d!d"j������������������|!��������������z���}|rUg�}!|D�])��\��}}|!j ��������������������jg������������������|||||����������������+�|��ja������������������d#d$d"j������������������|!��������������z���}|rRg�}!|D�]&��\��}}|!j ��������������������jg������������������||����������������(�|��ja������������������d%d&d'j������������������|!��������������z���}t��������|d(�������rE��jO������������������t!��������|jh���������������������������jR�������������������������}!|��ja������������������d)d*|!�������z���}t��������|d+�������rE��jO������������������t!��������|jj���������������������������jR�������������������������}!|��ja������������������d,d-|!�������z���}|S�#�t��������$�r�d}Y����w�xY�w#�t��������$�r�d } Y���w�xY�wc�c}}w�).z/Produce HTML documentation for a module object.Nr���rT���r���z.html" class="white">r���r����!<strong class="title">%s</strong>r0��r���������$Revision: �$z version %sr����z (%s)r���z-<br><a href="%(docloc)s">Module Reference</a>rK���z<a href=".">index</a><br>�#r���z#-z<span class="code">%s</span>z <p>%s</p> r����r���zPackage Contentszpkg-contentc������������������,�������j������������������|�d����������S�r}���)r���)�tr:���s��� �r���r����z#HTMLDoc.docmodule.<locals>.<lambda>g��s�������4�?�?�1�Q�4�#8r����Modules�Classes�indexr*��� Functions� functions�Data�datar���r�����Author�authorr�����Credits�credits)6r)����__all__r8���r���r���rW���r���rX���r���r;���urllib�parse�quoter���rG���r����rD���r����rV���r[��r����rA���localsr}��r~���rc���r ���� getmoduler����r���r���r ���r���r���r���rd���r-���r,���rh���r���rQ���r����pkgutil�iter_modulesr����r����r���r���r���r����getclasstreer(��r����r����)#r:���rA���r#����mod�ignoredr�����parts�linksr����� linkedname�headr ���r���r����info�versionr@��rP���r���r����cdictr����r����r<���r]���r����r����fdictr���r=����modpkgs�importer�ispkgrx��� classlists#���` r���r"��zHTMLDoc.docmodule��s����������� ��.�.�C��� � �3������s�5�z�!�|�$�A��L�L����%���1��+�&��a��2� 3��%���X�X�e�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��N�N�C��<�0�03�c� �9�E�#�J��u�� �F��"�J�C������#�}�}�d�o�o�W��������1���d�?�v�'�&�#�2F��v�s�+�t�3�"�e�|�7>��7I�C�7O�O�E�#�J��t�� �(��"���2�u��!�,�,�V�W�5F�5F�G�J�C�����!�!�%�(�G�,=�,=�e�,D��,N��s�C��0��L�L�#�u��.�!%���E�#�J��)�)�%�0��s��%��,��H����!�,�,�V�V�<�J�C���3��V�,����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����������� ����������������� �!�"���j�������������������}|xs�|}�j������������������}g�} | j�������������������!�G��!fd�d�������} �| ���������t��������t ��������j ���������������������������������}t ��������|�������dkD��rL�j�����������������������������!d��������|D�]'��}��!d��j������������������|�j�������������������������z�����������)���!d������������ ���!��fd�} ���!��fd�}���� ���!��fd �}t����������������D�����cg�c]��\��}}}}t��������|�� �������r||||f���}}}}}i�� |D�]*��\��}}}}dz���dz���|z���x� |<���} �t���������|�������} �|� |<����,�|r�|r|j���������������������������"n|d ���d����"t!��������|�"fd��������\��}}�t"��������j$������������������ur�"t"��������j$������������������u�r|}�V�"�u�rd}nd��j�������������������"�j�������������������������z��}|dz ��}t'��������|����������| d|z��|d���������}�| d|z��|d���������}�| d|z��|d���������}�|d|z��|d���������}�|d|z��|d���������}�|d|z��|d���������}|g�k(��sJ��|}|r��dj)������������������| �������} |k(��r d|�d |�d!�}nd"|�d#|�d$|�d%�}|rKg�}|D�]-��}|j��������������������j������������������|�j����������������������������������/�|d&d'j)������������������|�������z��z���}d} �t ��������j*��������������������������}|r)t/��������|�������}|r|d)k7��r|��j1������������������|�������z���d*z���}t3����������������}|r ||xs�dz���}��j5������������������|��j6��������������������� �������}|xr�d+|z��}��j9������������������|d,| d-|�������S�c�c}}}}w�#�t��������$�r�Y���w�xY�w#�t��������$�r�Y���Mw�xY�w#�t,��������t��������f$�r�d(}Y���w�xY�w).z.Produce HTML documentation for a class object.c��������������������������e�Zd�Zd��Z��fd�Zy)�(HTMLDoc.docclass.<locals>.HorizontalRulec�����������������������d|�_���������y�r������needonerT��s��� r���r����z1HTMLDoc.docclass.<locals>.HorizontalRule.__init__���� ������ ��r���c������������������<������|�j�������������������r��d��������d|�_���������y�)Nz<hr> rT���r����r:����pushs��� �r����maybez.HTMLDoc.docclass.<locals>.HorizontalRule.maybe������������<�<���N� ��r���N�r)���r���r���r����r����r���s����r����HorizontalRuler������� ������� !� !r���r���rU���z&<dl><dt>Method resolution order:</dt> z<dd>%s</dd> �</dl> c����������� �������(�����t��������||�������\��}}|rW� j�����������������������������|���������|D�]:��\��}}}} �t��������� |�������}���j������������������||�� ��� |�����������������d���������<�|S�#�t��������$�r����j������������������||����������������Y��0w�xY�w)NrS����r����r���r���r(��� Exceptionr%��)�msgr����r�����okr#���r�����homeclsr����r���r����hr�mdictr���rA���r���r:���s��� ��������r����spillzHTMLDoc.docclass.<locals>.spill���s��������#�E�9�5�I�B������ ��S� �24�.�D�$���Q� '��� 5����T�]�]�5�$��(-�w��v�w�P��Q���J��35���L���%��=���T�\�\�%��s�;�<�=�s����A,�,"B�Bc������������������������t��������||�������\��}}|r=�j����������������������������� |���������|D�] ��\��}}}}�� �j������������������||� ����������������"�|S�rB���r����r���r%���r��r����r����r��r#���r����r��r����r ��r���r���r:���s��� ����r����spilldescriptorsz*HTMLDoc.docclass.<locals>.spilldescriptors����S�������#�E�9�5�I�B������ ��S� �24�.�D�$�������e�T�3�7�8��35��Lr���c������������������d�����t��������||�������\��}}|r��j�����������������������������|���������|D�]���\��}}}}�j������������������t���������|�������|��������}t ��������|�������} | s��d|z����������n;�j������������������t ��������|��������j�������������������� � �������} d| z��} ��d|�| �d�����������d�����������|S�)Nz<dl><dt>%s</dl> z <dd><span class="code">%s</span>�<dl><dt>r��rS���)r����r���r&��r���rQ���r���r���)r��r����r����r��r#���r����r��r����r<���r=���r���r���r ��r ��r���rA���r���r:���s��� ��������r���� spilldataz#HTMLDoc.docclass.<locals>.spilldata���s��������#�E�9�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����r9���r����-r���c������������������������|�d����u�S��NrU���r ���r���� thisclasss��� �r���r����z"HTMLDoc.docclass.<locals>.<lambda>�����������A�a�D�I�<Mr����defined here�inherited from %sz:<br> z Methods %sc�����������������������|�d���dk(��S��NrT���r����r ���r���s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>���� ������A�a�D�H�$4r���zClass methods %sc�����������������������|�d���dk(��S��NrT���zclass methodr ��r��s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>���� ������A�a�D�N�$:r���zStatic methods %sc�����������������������|�d���dk(��S��NrT���r����r ��r��s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>���� ������A�a�D�O�$;r���zReadonly properties %sc�����������������������|�d���dk(��S��NrT���r����r ��r��s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>���������q��t�7J�/Jr���zData descriptors %sc�����������������������|�d���dk(��S��NrT���r����r ��r��s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>���������q��t�7H�/Hr���zData and other attributes %sc�����������������������|�d���dk(��S��NrT���r���r ��r��s��� r���r����z"HTMLDoc.docclass.<locals>.<lambda>����������!���r���rK���� <a name="z">class <strong>� </strong></a>z<strong>z</strong> = <a name="z">class r����(%s)r���N�()r���z&<span class="code">%s<br> </span>rw��rn���)r)���r���r���r���r����getmrorW���r���r���r���r����r����r���r��rG����popleftr�����builtinsrA���r����rX���� signature� ValueErrorrD���r[��rQ���r���r���r���)#r:���rA���r#���r���r���r���r����realnamer���rx��r����mror<���r��r��r��r����r"���r����r����r����r���anchor� inherited�tagrw��r����declr7���argspecr=���r ��r ��r���r��s#���`` ``` @@@@r���r#��zHTMLDoc.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��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��� ��)�)�&�1�I����)�n�G��7�d�?��d�k�k�'�2�2�V�;���V�n����#�)��$�C��k�k�#�t�~�~�u�g�u�E���D�>��D���|�|�E�7�H�a��=�=��k3����� ��� ����� �� ��n��I�&�� ��I� �s<����1M �2M �?M�/M*�� M�M� M'�&M'�*M>�=M>c������������������H�����|�j������������������d|�j������������������|�������z����������S��z)Format an argument default value as text.�=)r���r+��r]��s��� r����formatvaluezHTMLDoc.formatvalue*��s�������y�y��t�y�y��0�0�1�1r���c �����������������������|j�������������������} |xs�| }|�|}|�dn|j�������������������dz���|z���} d}d}d} t��������|�������ri|j������������������}||u�rt��������|dd�������} n�t ��������j ������������������|�������rd|�j ������������������||�������z��}n�d|�j ������������������|j������������������|�������z��}nkt ��������j������������������|�������st ��������j������������������|�������r? �|j������������������}|�d|�j ������������������||�������z��}n||urd |�j ������������������||�������z���}n|} t ��������j������������������| �������rS|�Q| j������������������|j������������������k7��s| j������������������|j������������������d z���| z���k7��r|�j������������������| |�������}|rd|z��}t ��������j ������������������|�������st ��������j"������������������|�������rd}nd}|| k(��r d | �d| �d�}nW|�Ht ��������j$������������������|| g��������|u�r/d|j�������������������dz���| z����d| �d�}d}|j'������������������d �������rd}n| }d | �d|�d|��}d}t ��������j(������������������|�������r> �t ��������j*������������������|�������}|r&t1��������|�������}| dk(��rd|z��}|j2������������������s|dd�}|sd}||z���|�j5������������������|�������z���|xr�|�j7������������������d|z���������z���}|rd|z��S�|�j9������������������t;��������|�������|�j<������������������|||�������}|xr�d|z��}d|�d|�d�S�#�t��������$�r�Y����w�xY�w#�t,��������t.��������f$�r�d}Y���w�xY�w) z;Produce HTML documentation for a function or method object.NrK���r��Fr&���� class method of %s� method of %s instance� unbound %s method� from r���� from %s�async r0��z "><strong>r1��z <a href="#r���r���Tz</strong></a> = �<lambda>z$<strong>%s</strong> <em>lambda</em> rT���r����(...)z$<span class="heading-text">%s</span>z<dl><dt>%s</dt></dl> z%<dd><span class="code">%s</span></dd>r��z</dt>r��)r)���r{���r*���r���r���r ���r���r+���r1����ismethodwrapperr3���r8���r,���r���r���r����iscoroutinefunction�isasyncgenfunction�getattr_staticr����rd���r7��r8��rG���rD����__annotations__r[��r���r���rQ���r���)r:���rA���r#���r���r���r���r����r����r��r9��r;���note�skipdocs�imfunc�imself�objclass�pname�asyncqualifierrw���reallinkr?��r7��r>��r=���s��� r���r$��zHTMLDoc.docroutine.��s1�������?�?����x���?��G�� �"����s�:�T�A���������F�#��_�_�F���|� ���T�:������(�,�t�~�~�f�c�/J�J��/�$�.�.��$�$�c�3+��+���(�(��0��%�%�f�-� D�!�.�.����:�/�$�.�.��3�2O�O�D��W�,�#�d�n�n�X�s�&C�C�D��F����f�%�'�*=�����!3�!3�3����7�#7�#7�#�#=��#H�H��O�O�F�C�0�E��!�E�)���'�'��/��*�*�6�2�%�N��N��8��>D�h�O�E����&�&�r�8�R�8�F�B��K�K�#�%��0�(�<�����?�?�8�,��D�#�����h�(�E������V�$� !�#�-�-�f�5� ����i�.���z�)�B�T�I�E��"�1�1�")�!�B�-����G���%����G�(<�<���AH��y�y�?�$�F�G�I����+�d�2�2��+�+��v������w��I�C��G�A�C�G�C�15�s�;�;���"�� �� ��P�� �*�� !� � � !�s$����K��'K)�� K&�%K&�)K=�<K=c������������������������g�}|j�������������������}|r�|d|z����������|�j������������������t��������|�������|�j�������������������������}|r�|d|z�����������|d��������dj ������������������|�������S�)z1Produce html documentation for a data descriptor.z!<dl><dt><strong>%s</strong></dt> z&<dd><span class="code">%s</span></dd> r��rK���)r���r���rQ���r���rX���� r:���rA���r#���r���r����r���r����r���r=���s ��� r���r%��zHTMLDoc.docdata���s`���������~�~����5��<�=��k�k�&��.�$�.�.�9����:�S�@�A��Y���w�w�w��r���c������������������D�����|xr�d|z��xs�d}||�j������������������|�������z���S�)z-Produce HTML documentation for a data object.z<strong>%s</strong> = rK����r+��)r:���rA���r#���r���r����lhss��� r���r&��zHTMLDoc.docother���s+�������6�/�$�6�<�"���T�Y�Y�v�&�&�&r���c������������������(����g�}|�i�}t��������j������������������|g�������D�]5��\��}}}t��������d��|D����������������r�|j������������������|d|||v�f��������d||<����7�|j ���������������������������|�j������������������||�j�������������������������}|�j������������������|d|�������S�)z2Generate an HTML index for a directory of modules.c��������������3����N���K����|�]��}d�t��������|�������cxk��xr�dk��nc������y�w)i����i����N)�ord��.0�chs��� r���� <genexpr>z HTMLDoc.index.<locals>.<genexpr>���s"���������@�4�R�F�c�"�g�/��/�/�4�s����#%rK���rT���r���)r���r����anyr���r����r���r���r���)r:���r���r���r���r���r#���r���rx��s��� r���r���z HTMLDoc.index���s������������X�%,�%9�%9�3�%�%@�!�H�d�E��@�4�@�@���N�N�D�"�e�T�X�-=�>�?��H�T�N��&A�� �����#�#�G�T�_�_�=�����s�G�X�6�6r����rK���)����rK���Nr{��rB��r�����NNN)r)���r���r���r@���rH���_repr_instancer+��r[��ry��r}��r���r���r���r���r���r���r���r���r���r���r���r���r���r"��r#��rC��r$��r%��rD��r&��r���r ��r���r���rt��rt��R��s�������1���Z�N����D� � "� "�F� &�&��34�19�U�**� <� 5��G��*�/�&O� 3�8��#'�b�"�b��% �R*�&s�j�%)�d�"�b��`>�D2��'+���R���d�W<�r ���K�'� 7r���rt��c��������������������,�����e�Zd�ZdZd��Zd��Zd��ZeZd��Zy)�TextReprzAClass for safely making a text representation of a Python object.c������������������t�����t��������j������������������|���������dx|�_��������|�_��������d|�_��������dx|�_��������|�_��������y�rJ��rN��rT��s��� r���r����zTextRepr.__init__���rU��r���c������������������$����t��������t��������|�������d�������rTddj������������������t��������|�������j������������������j ���������������������������������z���}t��������|�|�������r�t��������|�|�������||�������S�t ��������t��������t��������|��������������|�j�������������������������S�r_��) r����rC���rX���r)���r���r���rt���rx���r+��rS��ra��s��� r���rd��zTextRepr.repr1���sp�������4��7�J�'� �3�8�8�D��G�,<�,<�,B�,B�,D�#E�E�J��t�Z�(�0�w�t�Z�0��E�:�:��G�D��G�$�d�m�m�4�4r���c�����������������������t��������||�j�������������������������}t��������|�������}d|v�r dt��������|dd�������vrd|d���z���|z���|d���z���S�|S�)Nrf��rg��rK���rh��r���)rt���rR��r+��rl���ri��s��� r���rl��zTextRepr.repr_string���sV�������A�t�~�~�&����:���4�<�D���%��(D�D����!��$�t�+�h�q�k�9�9��r���c����������������������� �t��������t��������t��������|��������������|�j�������������������������S�#��d|j������������������j ������������������z��cY�S�xY�wrn��)rt���rx���r+��rR��r+���r)���ro��s��� r���rp��zTextRepr.repr_instance���s=������ :����Q��(�$�.�.�9�9�� :�"�Q�[�[�%9�%9�9�9�s ����'*��AN) r)���r���r���r@���r����rd��rl��rq��rp��r ��r���r���rl��rl�����s ������K�-�5����H�:r���rl��c�������������������������e�Zd�ZdZ�e��������Zej������������������Zd��Zdd�Zd��Z dd�Z dd�Zdd�Zd ��Z dd �Zdd�ZeZdddd�d �Zy)�TextDocz'Formatter class for text documentation.c������������������2�����dj������������������d��|D����������������S�)z(Format a string in bold by overstriking.rK���c��������������3����,���K����|�]��}|d�z���|z��������y�w)�Nr ��rb��s��� r���re��zTextDoc.bold.<locals>.<genexpr>���s���������5��"�r�D�y�2�~��s����)rX���rZ��s��� r����boldzTextDoc.bold���s�������w�w�5��5�5�5r���c�����������������������|sy|j������������������d�������D��cg�c]��}||z���j�����������������������������}}dj������������������|�������S�c�c}w�)z6Indent text by prepending a given prefix to each line.rK���rS���)r���rO���rX���)r:���rj����prefix�linerY���s��� r����indentzTextDoc.indent���sH�������B�6:�j�j��6F�G�6F�d�&�4�-�'�'�)�6F��G��y�y������Hs����Ac������������������t�����|�j������������������|�������j��������������������������}|�j������������������|�������dz���|z���dz���S�)z&Format a section with a given heading.rS���r���)rz��rO���rv��)r:���rw��rx���clean_contentss��� r���r���zTextDoc.section���s7���������X�.�5�5�7���y�y���$�&��7�&�@�@r���Nc����������� ������������d}|D�]���}t��������|t���������������rG|\��}}||z���t��������|��������z���}|r(||fk7��r"�fd�|D���������} |ddj������������������| �������z��z���}|dz���}�Zt��������|t���������������s�k||�j������������������|�|dz����������z���}���|S�)zBRender in text a class tree as returned by inspect.getclasstree().rK���c��������������3����6����K����|�]��}t��������|�������������y��wrB���r^���)rc��r���r]���s��� �r���re��z%TextDoc.formattree.<locals>.<genexpr>���s����������D�e��y��G�4�e�s����r2��r���rS���� )r.���r����r^���rX���r���r���) r:���r���r]���r���rx��rP���r���r���r���r���s ��� ` r���r���zTextDoc.formattree���s�����������E��%��'� ���5��&��9�Q��+@�@���U�v�i�/�D�e�D�G�#�f�t�y�y��/A�&A�A�F��$����E�4�(��$�/�/��7�A�v���#8��8������ r���c����������� �������� ����|j�������������������}t��������t��������|��������������\��}}|�j������������������d||xr�d|z���z����������}t ��������|dd�������}|�j������������������|�������} | �||�j������������������d| dz����������z���}|r||�j������������������d|�������z���}g�} t ��������j������������������|t��������j�������������������������D�]D��\��}}|�t ��������j������������������|�������xs�||u�s�$t��������|||�������s�2| j������������������||f���������F�g�} t ��������j������������������|t��������j�������������������������D�]U��\��}}|�-t ��������j������������������|�������st ��������j������������������|�������|u�s�5t��������|||�������s�C| j������������������||f���������W�g�}t ��������j������������������|t���������������D�]&��\��}}t��������|||�������s�|j������������������||f���������(�g�}t����������������}t!��������|d�������r�t#��������j$������������������|j&�������������������������D�]?��\��}}}|j)������������������|��������|r|j������������������|d z������������/|j������������������|���������A�|j+���������������������������||�j������������������d dj-������������������|��������������z���}g�}t ��������j������������������|t��������j.�������������������������D�]:��\��}}|j�������������������j1������������������|dz����������s�%||vs�*|j������������������|���������<�|r4|j+���������������������������||�j������������������d dj-������������������|��������������z���}| r�| D���cg�c]��\��}}|�� �}}}|�j3������������������t ��������j4������������������|d�������|�������g}| D�]'��\��}}|j������������������|�j7������������������|||����������������)�||�j������������������ddj-������������������|��������������z���}| rRg�}| D�]'��\��}}|j������������������|�j7������������������|||����������������)�||�j������������������ddj-������������������|��������������z���}|rTg�}|D�])��\��}}|j������������������|�j9������������������|||d�����������������+�||�j������������������ddj-������������������|��������������z���}t!��������|d�������rMt;��������|j<�������������������������}|dd�dk(��r|dd�dk(��r|dd�j?��������������������������}||�j������������������d|�������z���}t!��������|d�������r(||�j������������������dt;��������|j@��������������������������������z���}t!��������|d�������r(||�j������������������dt;��������|jB��������������������������������z���}t!��������|d�������r(||�j������������������dt;��������|jD��������������������������������z���} �t ��������jF������������������|�������}||�j������������������d!|�������z���}|S�c�c}}w�#�tH��������$�r�d }Y��*w�xY�w)"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 CONTENTSrS���r���� SUBMODULESrT����CLASSES� FUNCTIONS�F���)rq����DATAr����r���r���r���r����VERSIONr�����DATEr�����AUTHORr�����CREDITSr0���FILE)%r)���rZ���rQ���r���r���rA��r���r~���r ���r���r����r���rd���r-���rh����setr����r���r���r�����addr����rX���rc���r����r���r���r(��r&��rD���r����rV���r����r����r����r;��rG���)r:���rA���r#���r���r����synop�descrP���r����r@��r���r����r����r���r���r���� modpkgs_namesr���r]���r���� submodulesr���rx��r���r����s��� r���r"��zTextDoc.docmodule���s����������v�f�~�.���t����f�d�e�.E��� �&F�G���f�i��.������'�����d�l�l�+=�v��I��@�����F����d�l�l�=�$�?�?�F���!�,�,�V�W�_�_�E�J�C�����%�%�e�,�6��6�A��s�C��0��N�N�C��<�0��F����!�,�,�V�W�5F�5F�G�J�C�����!�!�%�(�G�,=�,=�e�,D��,N��s�C��0��L�L�#�u��.��H����!�,�,�V�V�<�J�C���3��V�,����S�%�L�)��=������ ��6�:�&�,3�,@�,@����,Q�(��'�5��!�!�'�*���N�N�7�\�#9�:��N�N�7�+��-R�� �L�L�N��d�l�l�"�D�I�I�g�$6�8��8�F��� �!�,�,�V�W�5E�5E�F�J�C���~�~�(�(����4��M�9Q��!�!�#�&��G����O�O���d�l�l��d�i�i� �3�5��5�F���18�9��:�3����I�9�����$�$�Y��2�D�:��;�H�%� ��U����� � �e�S�$� ?�@��&��d�l�l�9�d�i�i��6I�J�J�F���H�#� ��U����� � �e�S�$� ?�@��$��d�l�l�;�� � �(�8K�L�L�F���H�"� ��U����� � �e�S�$�r� � J�K��#��d�l�l�6�4�9�9�X�3F�G�G�F��6�=�)��&�,�,�-�G��s��|�1�1�g�b�c�l�c�6I�!�"�R�.�.�.�0���d�l�l�9�g�>�>�F��6�:�&��d�l�l�6�3�v���3G�H�H�F��6�<�(��d�l�l�8�S��9J�9J�5K�L�L�F��6�=�)��d�l�l�9�c�&�:L�:L�6M�N�N�F� ��%�%�f�-�D���$�,�,�v�t�4�4��� ��G�:��@��� ��D� �s����U�2U$��$U2�1U2c����������� ����������������� ���j�������������������}|xs�|}�j������������������}�j������������������fd�}||k(��rd��j������������������|�������z���}n��j������������������|�������dz���|z���}|r#t ��������||�������} |ddj������������������| �������z��z���}g�} | j������������������� �t��������j��������������������������}|r t��������|�������}|r|dk7��r��||z���dz�����������t����������������} | r��| dz�����������t��������t��������j���������������������������������}t��������|�������d kD��r(��d ��������|D�]��}��d�||�������z���������������d��������t!��������d ��t"��������j%��������������������������D���������t��������j&��������������������������}t��������|�������}d}|rD��d��������|d|�D�] ��}��d|z�������������||kD��r��dt��������||z ���������z���dz�������������d���������G��fd�d�������}�|���������������fd�}�����fd�}������fd�}t)����������������D�����cg�c]��\��}}}}t+��������|���������r||||f���}}}}}|r�|r|j-��������������������������� n|d���d ���� t/��������|� fd��������\��}}�t0��������j2������������������ur� t0��������j2������������������u�r|}�V� �u�rd}ndt5��������� �j�������������������������z��}t7��������|����������|d|z��|d���������}�|d|z��|d ���������}�|d!|z��|d"���������}�|d#|z��|d$���������}�|d%|z��|d&���������}�|d'|z��|d(���������}|g�k(��sJ��|}|r��dj������������������| �������} | s|dz���S�|dz�����j9������������������| j;��������������������������d)�������z���dz���S�#�t��������t��������f$�r�d}Y����w�xY�wc�c}}}}w�)*z4Produce text documentation for a given class object.c�����������������������t��������|�|�������S�rB��r��)r���r��s��� r����makenamez"TextDoc.docclass.<locals>.makenamea��s�������Q��?�"r����class z = class r2��r���Nr3��rS���rU���zMethod resolution order:r���rK���c��������������3�������K����|�]C��}|j�������������������j������������������d��������s&|j������������������dk(��rt��������|j������������������������������E�y�w)r����r6��N)r)���r����r���rD���)rc��r"���s��� r���re��z#TextDoc.docclass.<locals>.<genexpr>���s?���������� S�*E�3��L�L�+�+�C�0�S�^�^�z�5Q������ �*E�s����A Ar����r���zBuilt-in subclasses:z ... and z other subclassesc��������������������������e�Zd�Zd��Z��fd�Zy)�(TextDoc.docclass.<locals>.HorizontalRulec�����������������������d|�_���������y�r����r���rT��s��� r���r����z1TextDoc.docclass.<locals>.HorizontalRule.__init__���r���r���c������������������<������|�j�������������������r��d��������d|�_���������y�)NzF----------------------------------------------------------------------rT���r���r���s��� �r���r���z.TextDoc.docclass.<locals>.HorizontalRule.maybe���r���r���Nr���r���s����r���r���r������r��r���r���c����������� ������������t��������||�������\��}}|rL�j�����������������������������|���������|D�]/��\��}}}} �t��������� |�������}���j������������������||� � |����������������1�|S�#�t��������$�r����j������������������||� ���������������Y��Xw�xY�wrB��r��) r��r����r����r��r#���r����r��r����r ��r���rA���r���r:���s ��� �����r���r��zTextDoc.docclass.<locals>.spill���s��������#�E�9�5�I�B������ ��S� �24�.�D�$���E� '��� 5����T�]�]�5�(,�c�6�7�D��E��35���L���%��=���T�\�\�%��s�;�<�=�s����A!�!"B�Bc������������������������t��������||�������\��}}|r=�j����������������������������� |���������|D�] ��\��}}}}�� �j������������������||� ����������������"�|S�rB��r ��r��s��� ����r���r��z*TextDoc.docclass.<locals>.spilldescriptors���r��r���c����������� ������������t��������||�������\��}}|r[� j����������������������������� |���������|D�]>��\��}}}}t��������|�������} �t���������|�������} �� �j ������������������| |�d|��������dz������������@�|S�#�t��������$�r�|j ������������������|���} Y��=w�xY�w)Nr����rq���r=���rS���)r����r���rQ���r���r8����__dict__r&��)r��r����r����r��r#���r����r��r����r=���r9���r ��r���rA���r���r:���s��� �����r���r��z#TextDoc.docclass.<locals>.spilldata���s��������#�E�9�5�I�B������ ��S� �24�.�D�$��� ��-�C�5�%�f�d�3�������s�D�#�b�c��J����� �35���L�� �*��5�%�.�.�t�4��5�s����A0�0B� Br��r���c������������������������|�d����u�S�r��r ��r��s��� �r���r����z"TextDoc.docclass.<locals>.<lambda>���r��r���r��r��zMethods %s: c�����������������������|�d���dk(��S�r��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r ��r���zClass methods %s: c�����������������������|�d���dk(��S�r"��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r#��r���zStatic methods %s: c�����������������������|�d���dk(��S�r%��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r&��r���zReadonly properties %s: c�����������������������|�d���dk(��S�r(��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r)��r���zData descriptors %s: c�����������������������|�d���dk(��S�r+��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r,��r���zData and other attributes %s: c�����������������������|�d���dk(��S�r.��r ��r��s��� r���r����z"TextDoc.docclass.<locals>.<lambda>���r/��r���z | )r)���r���r���rv���maprX���r���r���r7��r8��rG���rD���rQ���r���r4��rW����sortedrC����__subclasses__r>��r����r����r5��r����r6��rA���r^���r����rz��rO���)!r:���rA���r#���r���r���r9��r���r���rw��r���rx��r7��r?��r=���r:��r<���� subclasses�no_of_subclasses�MAX_SUBCLASSES_TO_DISPLAY�subclassnamer���r��r��r��r����r"���r����r����r<��r=��r ��r���r��s!���`` ` @@@r���r#��zTextDoc.docclass[��s��������?�?����x��� � �� �+�+�� #���8���t�y�y��2�2�E��I�I�d�O�k�1�H�<�E���(�E�*�G��F�T�Y�Y�w�%7�7�7�E������� ��)�)�&�1�I����)�n�G��7�d�?��T�G�^�d�*�+��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��F��9�9�X�&����4�<���t�|�d�k�k�(�/�/�*;�V�D�D�t�K�K��E��I�&�� ��I� ��p3s����M��M �M�Mc������������������*�����d|�j������������������|�������z���S�rA��r]��r]��s��� r���rC��zTextDoc.formatvalue���s�������T�Y�Y�v�&�&�&r���c������������������^����|j�������������������}|xs�|}|�|}d}d}d} t��������|�������r]|j������������������} | |u�rt��������|dd�������} n�t ��������j ������������������| �������rdt ��������| |�������z��}nydt ��������| j������������������|�������z��}n_t ��������j������������������|�������st ��������j������������������|�������r3 �|j������������������}|�dt ��������||�������z��}n||urdt ��������||�������z���}n|} t ��������j������������������| �������rM|�K| j������������������|j������������������k7��s| j������������������|j������������������d z���|z���k7��rt��������| |�������}|rd |z��}t ��������j ������������������|�������st ��������j"������������������|�������rd} nd} ||k(��r|�j%������������������|�������}nG|�.t ��������j&������������������||g��������|u�rd}|j)������������������d�������rd}|�j%������������������|�������d z���|z���}d}t ��������j*������������������|�������rM �t ��������j,������������������|�������}|r5t3��������|�������}|dk(��r%|�j%������������������|�������dz���}|j4������������������s|dd�}|sd}| |z���|z���|z���}|r|dz���S�t7��������|�������xs�d}|dz���|xr"�|�j9������������������|�������j;��������������������������dz���z���S�#�t��������$�r�Y����w�xY�w#�t.��������t0��������f$�r�d}Y���w�xY�w)z;Produce text documentation for a function or method object.NrK���Fr&���rE��rF��rG��rH��r���rI��rJ��T� = rK��z lambda rT���r���rL��rS���)r)���r{���r*���r���r���r ���r^���r+���r1���rM��r3���r8���r,���r���r���ra���rN��rO��rv��rP��r����rd���r7��r8��rG���rD���rQ��rQ���rz��rO���)r:���rA���r#���r���r����r��r9��rR��rS��rT��rU��rV��rW��rX��rw��r?��r7��r>��r=���s��� r���r$��zTextDoc.docroutine���s�������?�?����x���?��G��������F�#��_�_�F���|� ���T�:������(�,�y���/E�E��/�)��$�$�c�3+��+���(�(��0��%�%�f�-� ?�!�.�.����:�/�)�H�c�2J�J�D��W�,�#�i��#�&>�>�D��F����f�%�'�*=�����!3�!3�3����7�#7�#7�#�#=��#H�H��v�s�+�E��!�E�)���'�'��/��*�*�6�2�%�N��N��8���I�I�h�'�E����&�&�r�8�R�8�F�B����?�?�8�,��D��I�I�d�O�e�+�h�6�E������V�$� !�#�-�-�f�5� ����i�.���z�)� �I�I�d�O�j�8�E��"�1�1�")�!�B�-����G���%��/�$�6����$�;����.�&�B�C��$�;�#�"J�$�+�+�c�*:�*A�*A�*C�d�*J�K�K��o�"�� �� ��H�� �*�� !� � � !�s$����0J��+J�� J�J�J,�+J,c������������������������g�}|j�������������������}|r�||�j������������������|����������������|d��������t��������|�������xs�d}|r�||�j������������������|����������������|d��������dj ������������������|�������S�)z1Produce text documentation for a data descriptor.rS���rK���)r���rv��rQ���rz��rX���r[��s ��� r���r%��zTextDoc.docdataH��sb���������~�~�������4��!���J��V�n�"��������S�!�"���J��w�w�w��r���r���c�����������������$����|�j������������������|�������}|r+|xr�|dz���xs�d|z���} |t��������| �������z ��} | dk��r|d| �dz���}|xr�|�j������������������|�������dz���xs�d|z���} |st��������|�������}|r#| d|�j ������������������t��������|��������������z���dz���z ��} | S�)z-Produce text documentation for a data object.r���rK���r���Nro���rS���)r+��rW���rv��rQ���rz��rD���)r:���rA���r#���r���r���rq���r=���r���r+��ry���chops��� r���r&��zTextDoc.docotherX��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��r���)r���)NrK���r����)NNNNri��)r)���r���r���r@���rl��rj��r+��rv��rz��r���r���r"��r#��rC��r$��r%��rD��r&��r ��r���r���rr��rr�����se������1���Z�N����D�6� �A�� c�JXL�t'�ML�^ ���K� ��$� r���rr��c�������������������������e�Zd�ZdZd��Zy)� _PlainTextDocz2Subclass of TextDoc which overrides string stylingc�����������������������|S�rB��r ��rZ��s��� r���rv��z_PlainTextDoc.boldi��s�������r���N)r)���r���r���r@���rv��r ��r���r���r���r���g��s ������<�r���r���c������������������.�����t����������������at��������|���������y)zCThe first time this is called, determine what kind of pager to use.N)�getpager�pagerrw���s��� r���r���r���n��s������� �J�E� �$�Kr���c�������������������^�����t��������t��������j������������������d�������st��������S�t��������t��������j������������������d�������st��������S�t��������j������������������j��������������������������rt��������j������������������j��������������������������st��������S�t��������j������������������dk(��rt��������S�t��������j������������������j������������������d�������xs�t��������j������������������j������������������d���������rCt��������j������������������dk(��r�fd�S�t��������j������������������j������������������d�������dv�r�fd �S��fd �S�t��������j������������������j������������������d�������dv�rt��������S�t��������j������������������dk(��rd��S�t��������t��������d�������rt��������j������������������d �������dk(��rd��S�ddl}�|�j��������������������������\��}}t��������j������������������|�������� �t��������t��������d�������r3t��������j������������������d|z���������dk(��rd��t��������j������������������|��������S�t��������t��������j������������������|��������S�#�t��������j������������������|��������w�xY�w)z2Decide what method to use for paging through text.�isatty� emscripten�MANPAGER�PAGER�win32c������������������.������t��������t��������|����������������S�rB���� tempfilepager�plain�rj���� use_pagers��� �r���r����zgetpager.<locals>.<lambda>���s������� �e�D�k�9� Er����TERM)�dumb�emacsc������������������.������t��������t��������|����������������S�rB��)� pipepagerr���r���s��� �r���r����zgetpager.<locals>.<lambda>���s������� �%��+�y� Ar���c������������������������t��������|���������S�rB���r���r���s��� �r���r����zgetpager.<locals>.<lambda>���s������� �$� � :r���c������������������,�����t��������t��������|��������d�������S�)Nzmore <r���rw���s��� r���r����zgetpager.<locals>.<lambda>���s������M�%��+�x�@r����systemz(less) 2>/dev/nullr���c�����������������������t��������|�d�������S�)N�lessr���rw���s��� r���r����zgetpager.<locals>.<lambda>���s������I�d�F�3r���Nz more "%s"c�����������������������t��������|�d�������S�)N�morer���rw���s��� r���r����zgetpager.<locals>.<lambda>���s������ �$�� 7r���)r����r ����stdin� plainpager�stdoutr����platformr���r<��r���r����tempfile�mkstemp�close�unlink�ttypager)r����fdr����r���s��� @r���r���r���t��s�������3�9�9�h�'����3�:�:�x�(����9�9����S�Z�Z�%6�%6�%8��� �|�|�|�#���� � ���z�*�E�b�j�j�n�n�W�.E�I���<�<�7�"�E�E� �Z�Z�^�^�F� #�'8� 8�A�A�:�:� �z�z�~�~�f��!2�2��� �|�|�w��@�@��r�8�����+?�!@�A�!E�3�3���%�%�'�N�R���H�H�R�L���2�x� �R�Y�Y�{�X�/E�%F�!�%K�7�� � � �(���� � � �(���� � �(��s����7-H��:H��H,c������������������0�����t��������j������������������dd|��������S�)z%Remove boldface formatting from text.z.rK���)rM���rN���rw���s��� r���r���r������s������ �6�6�%��T�"�"r���c������������������2����ddl�}|j������������������|d|j������������������d��������} �|j������������������5�} �|j ������������������|���������ddd�������� � �|j���������������������������y#�t ��������$�r�Y��&w�xY�w#�1�sw�Y����+xY�w#�t��������$�r�Y��9w�xY�w#�t ��������$�r�Y�nw�xY�w�L)z3Page through text by feeding it to another program.r���NT�backslashreplace)�shellr����errors)� subprocess�Popen�PIPEr����write�KeyboardInterruptr�����wait)rj����cmdr����proc�pipes��� r���r���r������s�����������C�t�:�?�?�#5����7�D� � �Z�Z�4� �� � �4� ����� ��I�I�K����%�� ��� ����Z����� �� ���!�� �� � �� �sW����A:��A.�A�A:��B �� A+�(A.�*A+�+A.�.A7�3A:��: B�B� B�Bc����������� �����������ddl�}|j��������������������������5�}t��������j������������������j ������������������|d�������}t��������|ddt��������j������������������dk(��rt��������j������������������d�������nd��������5�}|j������������������|���������ddd��������t��������j������������������|dz���|z���d z�����������ddd��������y#�1�sw�Y����0xY�w#�1�sw�Y���yxY�w) z<Page through text by invoking a program on a temporary file.r���Nz pydoc.out�wr���r���)r����encodingz "r���)r����TemporaryDirectoryr���r ���rX���r����r ���r����device_encodingr���r���)rj���r���r����tempdirr����r����s��� r���r���r������s�������� � $� $� &�'��7�7�<�<���5�� �(�C�(:��,�,�'�)���-�-�a�0�/3�����J�J�t�� � � � � �#��*�x�'�#�-�.�� '� &������ '� &�s$����AB:�-B.�?&B:�.B7 �3B:�:Cc�����������������������t��������t��������j������������������dd��������xs�d}|�j������������������|d�������j ������������������|�������S�)Nr����utf-8r���)r���r ���r����encode�decode)rj���r���s��� r����_escape_stdoutr������s6�������s�z�z�:�t�4�?��H��;�;�x�!3�4�;�;�H�E�Er���c����������� �����������t��������t��������|���������������j������������������d�������} �ddl}t��������j ������������������j ��������������������������}|j������������������|�������}|j������������������|��������d��} � �t��������t��������j������������������j!������������������dd��������������}|dk��rd}|dz ��x}}t��������j$������������������j'������������������dj)������������������|d|��������dz�����������||d�r�t��������j$������������������j'������������������d ��������t��������j$������������������j+����������������������������|��������} | d v�r t��������j$������������������j'������������������d��������n�| dv�r.t��������j$������������������j'������������������d||���z���dz�����������|dz���}��| d v�r||z ��|z ��}|dk��rd}t��������j$������������������j'������������������ddj)������������������||||z�����������z���dz�����������||z���}||d�r��|r|j-������������������|j.��������������������������yy#�t��������t��������t��������j������������������f$�r �d}d��}Y����w�xY�w#�t"��������$�r�d}Y����w�xY�w#�|r|j-������������������|j.��������������������������w�w�xY�w)z%Page through text on a text terminal.rS���r���Nc�������������������@�����t���������j������������������j������������������d�������S�r}���)r ���r���r ��r ��r���r���r����zttypager.<locals>.<lambda>���s������#�)�)�.�.��+r���c�������������������J�����t���������j������������������j��������������������������d�d�d�d�S�)Nr���rT���)r ���r���r����r ��r���r���r����zttypager.<locals>.<lambda>���s������#�)�)�,�,�.�s��3�B�Q�7r����LINESrT�������z -- more --)�q�Qz )� rS���)�b�B�)r���r���r����ttyr ���r����fileno� tcgetattr� setcbreakr��r8����io�UnsupportedOperationr���r���r<��r���r8��r���r���rX����flush� tcsetattr� TCSAFLUSH) rj���rY���r��r����old�getchar�hrh���incr���s ��� r���r���r������s������.��&�'�-�-�d�3�E�8�� �Y�Y� � � ���m�m�B���� � �b��+�� 2� ��B�J�J�N�N�7�A�.�/�A�� ��6��A��a�%���C�� � ������5��#�;�/�$�6�7��A�B�i��J�J���\�*��J�J����� �A��J��� � � � �!1�2���l�"�� � � � �!1�E�!�H�!<�t�!C�D���E����&�&���G�c�M���q�5�a�!��J�J���T�D�I�I�e�A�a��e�n�$=�=��D�E��C��A�!��A�B�i�&���M�M�"�c�m�m�S�1����A� ���)@�)@�A��8���7��8����� ��A� ��2���M�M�"�c�m�m�S�1���s=����AG1��.)H��D8H-��1#H�H�H*�&H-��)H*�*H-��-"Ic������������������f�����t���������j������������������j������������������t��������t ��������|�����������������������y)z>Simply print unformatted text. This is the ultimate fallback.N)r ���r���r���r���r���rw���s��� r���r���r������s�������J�J���U�>�$�/�0�1r���c������������������h����t��������j������������������|��������rU|�j������������������t��������j������������������v�rd|�j������������������z���S�t��������|�d�������rd|�j������������������z���S�d|�j������������������z���S�t��������j������������������|��������rd|�j������������������z���S�t��������j������������������|��������r=d|�j������������������j�������������������d|�j������������������j�������������������d|�j��������������������S�t��������j������������������|��������r=d|�j������������������j�������������������d|�j������������������j�������������������d|�j��������������������S�t��������j������������������|��������rd |�j������������������z���S�t��������j������������������|��������rd |�j������������������z���S�t��������j������������������|��������rd|�j������������������z���S�t��������|��������j������������������S�)z/Produce a short description of the given thing.zbuilt-in module r����zpackage zmodule zbuilt-in function zgetset descriptor r���zmember descriptor r���z function zmethod )r���rc���r)���r ���r��r����r-����isgetsetdescriptorr3���r���r4���r ���r,���r(���rC���)�things��� r����describer�����sW�����������>�>�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�>�>�)�)���;���r���c������������������R����|�j������������������d�������D��cg�c]��}|s�|�� �}}d\��}}|t��������|�������k��r;t��������dj������������������|d|dz�����������|�������}|r||dz���}}nn|t��������|�������k��r�;|r|}nt��������}||d�D�]��} �t��������||�������}��|S�c�c}w�#�t��������$�r�Y��yw�xY�w)z@Locate an object by name or dotted path, importing as necessary.r���r����NrT���)r���rW���r��rX���r6��r���r8���)r ���r���partr���r�����n� nextmodulerA���s��� r����locater����s�������"�j�j��o�6�o�d��T�o�E�6��I�F�A� �c�%�j�.������t��!��� 5�y�A� ��:�q�1�u�q�v����c�%�j�.��������a�b� �� ��V�T�*�F��� ��M��� 7����� �� �s����B�B�B� B&�%B&c�����������������������t��������|�t���������������r t��������|�|�������}|�t��������d|�z����������||�fS�t ��������|�dd�������}|�t��������|t���������������r|fS�dfS�)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)���)r.���rD���r��r��r���)r��r��rA���r#���s��� r����resolver��)��so�������%�����y�)���>���,��/4�4��5�� 5���u�}���u�j�$�/���j��s�3�d�=�=��=�=r���c������������������(����|�t���������}t��������|�|�������\��}}t��������|�������}t��������j������������������|�������}|rd|v�r|d|d|j������������������d��������z���z ��}n|r||ur|d|j������������������z���z ��}t��������j������������������|�������sst��������j������������������|�������s^t��������j������������������|�������sIt��������j������������������|�������s4t��������|�������s)t��������|d�������r |j������������������}nt��������|�������}|dz ��}||z��dz���|j������������������||�������z���S�)zBRender text documentation, given an object or a path to an object.Nr���z in z in module � __origin__z objectr���)rj���r��r��r���r����rfindr)���rc���r ���rd���r2���rI���r����r��rC���r(��)r��rw��r���rendererrA���r#���r���r����s��� r���� render_docr!��7��s�����������5�)�,�L�F�D��F��D� � � �v� &�F���t�����.�t�z�z�#��/�/�/�� �F�&�(�� ����/�/�����V�$��o�o�f�%�����'��&�&�v�.��f�o���6�<�(��&�&�F��&�\�F��I��D��4�<�&� �8�#4�#4�V�T�#B�B�Br���c������������������ ����|� �t��������t��������|�||���������������y �t��������|�||t���������������}|j ������������������|��������y#�t��������$�r}|r��t��������|��������Y�d}~yd}~ww�xY�w#�t��������$�r}t��������|�������}Y�d}~�Od}~ww�xY�w)zCDisplay text documentation, given an object or a path to an object.N)r���r!��r���print� plaintextrD���r���)r��rw��r���output�is_clir���r����s��� r���r=���r=���R��s|��������~� ��*�U�E�9�5�6� ��5�%��I�>�A�� ���Q������ ����#�J�J�� ����� ��C��A�� �s.����A���A$��� A!� A�A!�$ B�-A=�=Bc����������������������t��������|�|�������\��}}t��������j������������������t��������|�������t��������j ������������������||��������������}t��������|dz���dd��������5�}|j ������������������|��������ddd��������t��������d|dz�����������y#�1�sw�Y����xY�w)z<Write HTML documentation to a file in the current directory.r:��r���r���)r���N�wrote)r���htmlry��r��r(��r����r���r#��)r��r��rA���r#���ry��r����s��� r����writedocr*��c��sl�������5�)�,�L�F�D��9�9�X�f�%�t�}�}�V�T�'B�C�D� �d�W�n�c�G� 4��� � �4��� 5� �'�4�'�>�"�� 5� 4�s����A>�>Bc������������������b�����|�i�}t��������j������������������|�g|�������D�]��\��}}}t��������|����������y)zAWrite out HTML documentation for all modules in a directory tree.N)r���� walk_packagesr*��)r����pkgpath�doner���r]���r���s��� r���� writedocsr/��k��s7�������|�B�T�$+�$9�$9�3�%��$I� ��'�5�����%J� r���c��������������������T����e�Zd�Zi�dd�dd�dd�dd�dd�d d �dd�d d�dd�dd�dd�dd�dd�dd�dd�dd�dd�i�d d!�d"d#�d$d%�dd&�d#d'�d(d)�d*d+�d,d-�d.d/�d0d�d1d�d2d3�d4d5�d6d7�dd8�d9d:�dd;��d<d=i�Zd>D�����cg�c]��}d?D�]��}||z����� ���c}}}�Zd@dAdBdCge��dDdEdFdGdHdIdJ�ZdKdLdMdNdOdPdQdRdSdTdUdVdVdWdWdX�Zej��������������������������D�]/��\��ZZ e D�]%��Z ej������������������e e�������ZeevredYz���ez���Zeee <����'��1�[[ [ [i�dZd[�dRd\�d]d^�d_d`�dadb�dcdd�dedf�dgdh�didj�dkdl�dmdn�dodp�dqdr�dsdt�dudv�dwdZ�dxdZ�i�dydz�dOd{�d|d}�d~d�d�d��d�d#�d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d���i�d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��d�d��dSd��d�d��d�dk�d�d��d�d��d�d��dnd��d�d���i�d�d��d�d��d�d��d�d��dLd��d�d��d�d��d�dd�dēd+dœddƓd�d �d�dɓd�d˓d�d�d�d6�d�d#��dd�d�d�d�dӜ�Zd�dՄZ edք���������Zedׄ���������Zd�Z�e��������ZefdلZdڄ�Zdۄ�Zd�d܄Zd݄�Zd�dބZd߄�Zd��Zd��Zd�d�Zd�d�Zd��Zd�d�Z y�c�c}}}�w�)��Helper�FalserK����None�True�and�BOOLEAN�as�with�assert)r9��rK����async)r:��rK����await)r;��rK����break)r<��� while for�class)r>��zCLASSES SPECIALMETHODS�continue)r?��r=���def)�functionrK����del)rB���BASICMETHODS�elif�if�else)rF��r=���except�try�finally�for)rJ��zbreak continue while�from�import�global)rM��znonlocal NAMESPACES)rE��� TRUTHVALUE)rL���MODULES�in)rP���SEQUENCEMETHODS�is� COMPARISON�lambda)rT��r����nonlocal)rU��zglobal NAMESPACES�not�or�pass)rX��rK����raise)rY��� EXCEPTIONS�return)r[��r���)rH��rZ���while)r\��zbreak continue if TRUTHVALUE)r8��z CONTEXTMANAGERS EXCEPTIONS yield�yield)r]��rK���)r���frh���u��'r���ra��z'''r���z""")�+r���*�**r9��z//�%�<<�>>rW���|�^�~rX��rY���<=�>=�==�!=�<>)rX��rY��rk��rl��rm��rn��ro��)r��rj��)z+=z-=z*=z/=z%=z&=z|=z^=z<<=z>>=z**=z//=)rf��rg��rW��rh��ri��rj��)�j�J)�STRINGS� OPERATORSrS���UNARY�AUGMENTEDASSIGNMENT�BITWISE�COMPLEXzOPERATORS FORMATTING�POWERzTUPLES LISTS FUNCTIONSz ATTRIBUTES FLOAT MODULES OBJECTS�ELLIPSISzSLICINGS DICTIONARYLITERALSz def classrr���PRIVATENAMESzPRIVATENAMES SPECIALMETHODS� BACKQUOTESzTUPLES FUNCTIONS CALLSzLISTS SUBSCRIPTS SLICINGS)re��rd���,r���ro����:�@rf��r����r�����`r����r�����[�]r*���TYPES)�typeszRSTRINGS UNICODE NUMBERS SEQUENCES MAPPINGS FUNCTIONS CLASSES MODULES FILES inspect)�stringsz4str UNICODE SEQUENCES STRINGMETHODS FORMATTING TYPES� STRINGMETHODS)zstring-methodszSTRINGS FORMATTING� FORMATTING)� formatstringsrs���UNICODE)r���z:encodings unicode SEQUENCES STRINGMETHODS FORMATTING TYPES�NUMBERS)�numberszINTEGER FLOAT COMPLEX TYPES�INTEGER)�integersz int range�FLOAT)�floatingz float mathrw��)� 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-objectrK���)zbltin-ellipsis-object�SLICINGS�SPECIALATTRIBUTES)�specialattrsrK���r���)r���z!class SPECIALMETHODS PRIVATENAMESrO��)�typesmodulesrL���PACKAGES�EXPRESSIONS)zoperator-summaryz�lambda or and not in is BOOLEAN COMPARISON BITWISE SHIFTING BINARY FORMATTING POWER UNARY ATTRIBUTES SUBSCRIPTS SLICINGS CALLS TUPLES LISTS DICTIONARIESrs��� PRECEDENCE�OBJECTS)�objectsr����SPECIALMETHODS)�specialnameszbBASICMETHODS ATTRIBUTEMETHODS CALLABLEMETHODS SEQUENCEMETHODS MAPPINGMETHODS NUMBERMETHODS CLASSESrC��)� customizationzhash repr str SPECIALMETHODS�ATTRIBUTEMETHODS)zattribute-accesszATTRIBUTES SPECIALMETHODS�CALLABLEMETHODS)zcallable-typeszCALLS SPECIALMETHODSrQ��)�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-featuresrK����SCOPING�FRAMESrZ��)r2��ztry except finally raise�CONVERSIONS)�conversionsrK����IDENTIFIERS)�identifierszkeywords SPECIALIDENTIFIERS�SPECIALIDENTIFIERS)z id-classesrK���)zatom-identifiersrK����LITERALS)z atom-literalsz=STRINGS NUMBERS TUPLELITERALS LISTLITERALS DICTIONARYLITERALS�TUPLES� TUPLELITERALS)� exprlistszTUPLES LITERALS�LISTS)ztypesseq-mutable�LISTLITERALSr���)�listszLISTS LITERALS)�typesmapping�DICTIONARYLITERALSr���)r5���zDICTIONARIES LITERALS� ATTRIBUTES)zattribute-referencesz(getattr hasattr setattr ATTRIBUTEMETHODS� SUBSCRIPTS)� subscriptionsrQ��r���)�slicingsrQ���CALLS)�callsr���)�powerr���rt��)�unaryr����BINARY)�binaryr����SHIFTING)�shiftingr���rv��)�bitwiser���)�comparisonszEXPRESSIONS BASICMETHODS)�booleanszEXPRESSIONS TRUTHVALUE� ASSERTION� ASSIGNMENT)� assignmentru��ru��)� augassignr����DELETION� RETURNING� IMPORTING)�compoundzfor while break continue)�truthz if while and or not BASICMETHODS)�debugger�pdb)zcontext-managersr8��)�CONDITIONAL�LOOPINGrN��� DEBUGGING�CONTEXTMANAGERSNc������������������ �����||�_���������||�_��������y�rB��)�_input�_output)r:����inputr%��s��� r���r����zHelper.__init__"��s�����������r���c������������������>�����|�j�������������������xs�t��������j������������������S�rB��)r���r ���r���rT��s��� r���r���zHelper.input&��s�������{�{�'�c�i�i�'r���c������������������>�����|�j�������������������xs�t��������j������������������S�rB��)r���r ���r���rT��s��� r���r%��z Helper.output*��s�������|�|�)�s�z�z�)r���c�����������������������t��������j��������������������������d���d���dk(��r�|����������yd|�j������������������j�������������������d|�j������������������j�������������������d�S�)NrT���rn����?rK���rX��r���z instance>)r����stackr+���r���r���rT��s��� r����__repr__zHelper.__repr__.��sO�������=�=�?�1��a� �C�'��F���(��&*�^�^�%>�%>�%)�^�^�%@�%@�B�� Br���c������������������$����||�j�������������������ur �|�j������������������|��������y�|�j���������������������������|�j ���������������������������|�j������������������j ������������������d��������y�#�t��������$�r(}|�j������������������j ������������������|��d���������Y�d�}~y�d�}~ww�xY�w)NrS���a�� 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. )�_GoInteractiver���r��r%��r����intro�interact)r:����requestr��s��� r����__call__zHelper.__call__6��sy�������$�-�-�-� .�� � �'�"�� �J�J�L��M�M�O��K�K������ ����� .����!�!�S�E��*�-�-�� .�s����A�� B�'B � Bc����������������������|�j�������������������j������������������d�������� � �|�j������������������d�������}|sy� �|j��������������������������}t ��������|�������dkD��r"|d���|d���cxk(��rdv�rn�n|d���|dd�vr|dd�}|j��������������������������dv�ry�|d k(��r|�j���������������������������n|�j������������������|����������#�t��������t��������f$�r�Y�y�w�xY�w) NrS���zhelp> rU���r���r���r`��rT���)r����quitr���) r%��r����getliner����EOFErrorrV���rW���r>��r���r���)r:���r���s��� r���r���zHelper.interactF��s������������$��� ��,�,�x�0����w���m�m�o�G���G��q� �W�Q�Z�7�2�;�%L�*�%L��� �'�!�B�-�7�!�!�B�-���}�}��-�/���&� �� � ��� � �'�"�#����&�x�0�� �� �s����B.��.C��?C�c������������������������|�j�������������������t��������j������������������u�rt��������|�������S�|�j������������������j ������������������|��������|�j������������������j���������������������������|�j�������������������j ��������������������������S�)z.Read one line, using input() when appropriate.)r���r ���r���r%��r���r ��r����)r:����prompts��� r���r���zHelper.getline[��sQ�������:�:����"���=� ��K�K���f�%��K�K�����:�:�&�&�(�(r���c������������������n����t��������|t����������������rX|j��������������������������}|dk(��r|�j����������������������������nb|dk(��r|�j ����������������������������nK|dk(��r|�j����������������������������n4|dk(��r|�j ����������������������������n|d�d�dk(��r#|�j ������������������|j��������������������������d�����������n�||�j������������������v�r|�j������������������|��������n�|dv�r#t��������t��������|�������d |�j������������������|� ��������n�||�j������������������v�r|�j������������������|��������n�||�j������������������v�r|�j������������������|��������nk|rt��������|d |�j������������������|� ��������nOt��������t��������d |�j������������������|� ��������n1t��������|t ���������������r�|����������nt��������|d |�j������������������|� ��������|�j"������������������j%������������������d��������y�)N�keywords�symbols�topicsr�������zmodules rT���)r4��r2��r3��zHelp on %s:)r%��r&��rS���)r.���rD���rV����listkeywords�listsymbols� listtopics�listmodulesr���r���� showsymbolr=����evalr���r���� showtopicr���r1��r%��r���)r:���r���r&��s��� r���r���zHelper.helpd��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��D�L�L�(�$�/�/�'�*B��5�5��D��M�=����f�U��D�M�M�)�4�>�>�'�+B��D�K�K�'�����)@��#�g�}�T�\�\�RX�Y��c�=����f�M� ��� (�$�&��'�=����f�M������$�r���c�����������������������|�j�������������������j������������������dj������������������dt��������j������������������d�d�z�����������������y�)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" or "quit". z%d.%drU���)r%��r���r=��r ���rC��rT��s��� r���r���zHelper.introy��s7������������� ��F�7�S�%�%�b�q�)�)�*�! ,r���c����������������������t��������t��������|��������������}||z��}t��������|�������|z���dz ��|z��}t��������|�������D�]���}t��������|�������D�]s��}||z��|z���}|t��������|�������k��s�|�j������������������j������������������||�����������||dz ��k��s�A|�j������������������j������������������dd|dz ��t��������||����������z ��z��z������������u�|�j������������������j������������������d�����������y�)NrT���r*��rS���)r���r���rW���r���r%��r���) r:����items�columnsr����colwr����rowr���r����s ��� r���r���zHelper.list���s��������V�E�]�#�������E� �W�$�q�(�W�4����;�C��W�~���$�J��$���s�5�z�>��K�K�%�%�e�A�h�/��W�q�[�(����)�)�#��t�a�x�#�e�A�h�-�7O�0P�*P�Q��&�� �K�K���d�#��r���c�����������������������|�j�������������������j������������������d��������|�j������������������|�j������������������j ����������������������������������y�)NzN Here is a list of the Python keywords. Enter any keyword to get more help. )r%��r���r���r���r����rT��s��� r���r���zHelper.listkeywords���s4�������������� �� � � �$�-�-�$�$�&�'r���c�����������������������|�j�������������������j������������������d��������|�j������������������|�j������������������j ����������������������������������y�)Nzx Here is a list of the punctuation symbols which Python assigns special meaning to. Enter any symbol to get more help. )r%��r���r���r���r����rT��s��� r���r���zHelper.listsymbols���s4�������������� � � � � �$�,�,�#�#�%�&r���c�����������������������|�j�������������������j������������������d��������|�j������������������|�j������������������j ����������������������������������y�)NzN Here is a list of available topics. Enter any topic name to get more help. )r%��r���r���r���r����rT��s��� r���r���zHelper.listtopics���s4�������������� �� � � �$�+�+�"�"�$�%r���c������������������^���� �dd�l�}|�j������������������j������������������||�j������������������j������������������|��������������}|s(|�j������������������j������������������dt��������|�������z����������y�t��������|t���������������r|�j������������������||�������S�|\��}} �|j������������������j������������������|���}|j��������������������������dz���}|r|xs�ddz���|z���}|rRdd�l }ddj������������������|j���������������������������������z���dz���} |j!������������������| d �������} |d dj������������������| �������z��z ��}|�j"�������������������t%��������|��������y�|�j������������������j������������������|��������y�#�t��������$�r�|�j������������������j������������������d��������Y�y�w�xY�w#�t��������$�r*�|�j������������������j������������������dt��������|�������z����������Y�y�w�xY�w)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 rS���rK���r*���Related help topics: r����H���z %s )�pydoc_data.topicsr��r%��r���r���r���r���r+��r.���rD���r���KeyErrorrV����textwraprX���r����wrapr���r���)r:����topic� more_xrefs� pydoc_data�target�label�xrefsr=���r��rj����wrapped_texts��� r���r��zHelper.showtopic���s������ �$��������� � �(9�(9�%�(@�A����K�K���?�$�u�+�M�N���f�c�"��>�>�&�*�5�5����u� ��#�#�*�*�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��<�<���#�J��K�K���c�"��?��� ��K�K������ �� � �� ��� ��K�K���?�$�u�+�M�N�� �s#����E�� E9��$E6�5E6�90F,�+F,c������������������R���� �ddl�}|�j������������������j������������������||�j������������������j������������������|��������������}|st��������d��������t ��������|t���������������r|�j������������������||�������S�|\��}}|j������������������j������������������|���}|r|xs�ddz���|z���}||fS�#�t��������$�r�Y�yw�xY�w)a*��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. r���N)r��rK���zcould not find topicrK���r*��) r��r��r���r���r���r8��r.���rD���� _gettopic)r:���r��r��r��r��r��r��r=���s��� r���r��zHelper._gettopic���s������� �$��������� � �(9�(9�%�(@�A����3�4�4��f�c�"��>�>�&�*�5�5����u����&�&�u�-����[�b�C�'�*�4�E��E�z������ � � �s����B�� B&�%B&c������������������p�����|�j�������������������|���}|j������������������d�������\��}}}|�j������������������||��������y�)Nr*��)r���� partitionr��)r:����symbolr��r��r����r��s��� r���r���zHelper.showsymbol���s4���������f�%�� �*�*�3�/���q�%����u�e�$r���c������������������n�����|r6|�j�������������������j������������������dj������������������|���������������t��������|��������y�|�j�������������������j������������������d��������i�}|fd���fd�}t ����������������j�������������������|���������|�j ������������������|j����������������������������������|�j�������������������j������������������d��������y�)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������������������\�����|r|dd��dk(��r|d�d�dz���}|j������������������d�������dk��rd||<���y�y�)N���� .__init__r���r���r���rT���)�find)r ���r]���r���r���s��� r����callbackz$Helper.listmodules.<locals>.callback ��sB�������w�r�s�|�{�:�%�c�r�l�\�9�G��<�<��$�q�(�'(�G�G�$��)r���c��������������������������d�|�d���������y�rB��r ��)r]���r$��s��� �r����onerrorz#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". )r%��r���r=���apropos� ModuleScanner�runr���r����)r:���r����r���r&��r$��s��� @r���r���zHelper.listmodules���s����������K�K�������F�3�K� � � �C�L��K�K������ ���G�6=�� )� .��O����'��:��I�I�g�l�l�n�%��K�K������ r���r����)F)r����P���rg��)!r)���r���r���r����_strprefixes�_symbols_inverser���r��r���symbols_r��r���r���r����r/���r���r%��r���rA���r���r���r���r���r���r���r���r���r���r���r��r��r���r���)rc���pr���s���000r���r1��r1��r��se�����$���$���$�� ��$�� �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�A��E��E�#7�L�L��%��e�;�l�;�N�?��!B�4�� ���$�� %� /�� *� �� �+� � %� %� (� (��G�"�,�1�1�3���x��F��[�[���/�F��F�"��#���-��$�G�F�O� ���4�� �x���U���=�U�� ��(�U� � �A�U�� �4� U�� ��(�U�� �=�U�� �,�U�� �+�U�� �1�U�� �I�U�� �N�U�� �4�U� � �>�!U�"� �H�#U�$� �<�%U�&� ��'U�(� �g�)U�*� �)�+U�,� �9�-U�.� �1�/U�0� �A�1U�2� �-�3U�4� �H�5U�6� ��.�7U�>� �]�?U�@� �m�AU�B� �'�CU�D� ��4�EU�J� �I�KU�L� �M�MU�N� �E�OU�P� ��/�QU�T� �G�UU�V� ��,�WU�Z� �K�[U�\� �W�]U�^� �3�_U�`� �<�aU�b� �,�cU�d� �@�eU�f� �*�gU�h� �E�iU�j� �0�kU�l� �0�mU�n� ��8�oU�r� �+�sU�t� �9�uU�v� �5�wU�x� �3�yU�z� �>�{U�|� �?�}U�~� �Z�U�@� �:�AU�B� �3�CU�D� �)�EU�F� �)�GU�H� �)�IU�J� �+�KU�L� �/�MU�N� �-�OU�P� �A�QU�R� �9�SU�T� �X�UU�V� �;�WU�X� �=�YU�Z� �E�[U�\� �X�]U�^� �X�_U�`��;�C�(�7�iU�F�n���(���(���*���*�B���X�N�-��� #�*)� �*,�&$�(�'�&�"#�H�6%� ��[ �Ms����9H#r1��c�������������������������e�Zd�ZdZdd�Zy)r)��z7An interruptible scanner that searches module synopses.Nc����������������������|r|j��������������������������}d|�_��������i�}t��������j������������������D�]|��}|dk7��s� d||<���|��|d�|d���������t ��������|�������j ������������������xs�d}|j ������������������d�������d���}|dz���|z���}|j��������������������������j������������������|�������dk\��s�s�|d�||���������~�t��������j������������������|��������D��]0��\��} }} |�j������������������r��n|��|d�|d���������$ �| j������������������|�������}|j������������������}t��������|d �������rU �|j������������������|�������} t!��������t#��������j$������������������| ��������������xs�d}t��������|d �������r|j'������������������|�������}n[d�}nX �t(��������j*������������������j-������������������|�������}|j ������������������r|j ������������������j1��������������������������d���nd}t3��������|dd��������}|dz���|z���}|j��������������������������j������������������|�������dk\��s��'�||||����������3�|r�|���������y�y�#�t��������$�r�Y���Kw�xY�w#�t��������$�r�|r�||��������Y���ew�xY�w#�t.��������$�r�|r�||��������Y���w�xY�w)NF�__main__rT���rK���rS���r���r��r'��� get_source�get_filenamer����)r>��r���r ���r��� __import__r@���r���r#��r���r,��� find_specr����r����r����r3��r��r����r���StringIOr4��r����r����r����r��r����r���)r:���r$��r����� completerr&���seenr]���r#���r���r���r���r����r�����sourcer ���r����s��� r���r*��zModuleScanner.run ��s=������c�i�i�k���� ����/�/�G��*�$� !��W� ��;��T�7�B�/�%�g�.�6�6�<�"�D��:�:�d�+�A�.�D�"�U�?�T�1�D��z�z�|�(�(��-��2� ��w��5��0��)0�(=�(=�g�(N�(N�$�H�g�u��y�y���{���w��+��#�-�-�g�6�D�������6�<�0�!�!'�!2�!2�7�!;�� �+�2�;�;�v�+>�?�E�2�D��v�~�6�%�2�2�7�;��#��!�!*�!5�!5�!;�!;�D�!A�� �>D�^�^�6�>�>�4�4�6�q�9�QS�D�"�6�*�T�:�D�����-���:�:�<�$�$�S�)�Q�.��T�7�D�1�I�)O�L���K����;�#�������%��!�"�#�G�,� �!���'��!�"�#�G�,� �!�s6����&H��H�%H*�� H �H �H'�&H'�*I��Iri��)r)���r���r���r@���r*��r ��r���r���r)��r)�� ��s ������A�8r���r)��c������������������������d��}d��}t��������j��������������������������5��t��������j������������������d��������t����������������j ������������������||�|���������ddd��������y#�1�sw�Y���yxY�w)zAPrint all the one-line module summaries that contain a substring.c������������������J�����|dd��dk(��r|d�d�dz���}t��������||xr�d|z�����������y��Nr!��r"��r���z- )r#��)r ���r]���r���s��� r���r$��zapropos.<locals>.callbackP ��s3�������2�3�<�;�&��c�r�l�\�1�G� �g�t�+��t��,r���c������������������������y�rB��r ���r]���s��� r���r&��zapropos.<locals>.onerrorT ��s������r���r����r'��N)r����r�����filterwarningsr)��r*��)r����r$��r&��s��� r���r(��r(��N ��sI������-� � � � � "�����)�����H�c�7��;�� #� "� "�s����2A�Ac�������������������������� � ��ddl��ddl�ddl� ddl� �G�d��d�j������������������j ���������������������������G�� fd�d�j������������������j���������������������������G������ fd�d� j�������������������������}�||�||�������}|j���������������������������|j������������������sS|j������������������r|j������������������s;t��������j������������������d ��������|j������������������s|j������������������s�.|j������������������s�;|S�) aA��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 r���Nc�������������������������e�Zd�Zd��Zd��Zy)�!_start_server.<locals>.DocHandlerc������������������8����|�j�������������������j������������������d�������rd}nd}|�j������������������d��������|�j������������������dd|z����������|�j ���������������������������|�j ������������������j ������������������|�j������������������|�j�������������������|�������j������������������d���������������y) 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�����zContent-Typez%s; charset=UTF-8r���N) r ���r����� send_response�send_header�end_headers�wfiler���� urlhandlerr���)r:����content_types��� r����do_GETz(_start_server.<locals>.DocHandler.do_GET� ��s��������y�y�!�!�&�)�)��*�����s�#����^�-@�<�-O�P������J�J���T�_�_�� � �<�)�)/���� :r���c������������������������y�rB��r ��)r:���r'��s��� r����log_messagez-_start_server.<locals>.DocHandler.log_message� ��s������r���N)r)���r���r���rN��rP��r ��r���r���� DocHandlerrC��� ��s������ :� r���rQ��c��������������������$������e�Zd�Zd��Z��fd�Zd��Zy)� _start_server.<locals>.DocServerc�����������������������||�_���������|�j�������������������|f|�_��������||�_��������|�j������������������j ������������������|�|�j������������������|�j ��������������������������d|�_��������y��NF)�host�addressr$��r<���r�����handlerr���)r:���rV���portr$��s��� r���r����z)_start_server.<locals>.DocServer.__init__� ��sE�������D�I� �I�I�t�,�D�L�$�D�M��I�I���t�T�\�\�4�<�<�@��D�Ir���c�������������������������|�j�������������������sP�j������������������|�j������������������j��������������������������gg�g�d�������\��}}}|r|�j ���������������������������|�j�������������������s�P|�j���������������������������y�r}���)r����select�socketr���handle_request�server_close)r:����rd�wr�exr[��s��� �r����serve_until_quitz1_start_server.<locals>.DocServer.serve_until_quit� ��sZ��������i�i�#�]�]�D�K�K�,>�,>�,@�+A�2�r�1�M� ��B����'�'�)���i�i�� ���r���c������������������v�����|�j�������������������j������������������|���������|�j������������������r|�j������������������|���������y�y�rB��)r<����server_activater$��rT��s��� r���rd��z0_start_server.<locals>.DocServer.server_activate� ��s,�������I�I�%�%�d�+��}�}�� � �d�#��r���N)r)���r���r���r����rb��rd��)r[��s����r���� DocServerrS��� ��s������� � � $r���re��c��������������������4������e�Zd�Z�fd�Z�����fd�Zd��Zd��Zy)�#_start_server.<locals>.ServerThreadc������������������������||�_���������||�_��������t��������|�������|�_���������j������������������j������������������|���������d|�_��������d�|�_��������d�|�_��������y�rU��) rL��rV��r���rY���Threadr�����serving�error� docserver)r:���rL��rV��rY��� threadings��� �r���r����z,_start_server.<locals>.ServerThread.__init__� ��sE�������(�D�O��D�I��D� �D�I����%�%�d�+� �D�L��D�J�!�D�Nr���c������������������n����� ��j�������������������j�������������������_����������_���������j������������������j �������������������_��������t��������|�j��������������������������_����������|�j������������������|�j������������������|�j�������������������������}||�_��������|j���������������������������y#�t��������$�r}||�_��������Y�d}~yd}~ww�xY�w)zStart the server.N)�server� HTTPServerr<���rX��r,���Message�MessageClass�staticmethodrL��rV��rY���readyrl��rb��r��rk��)r:����docsvrr��rQ��re���email�https��� ����r���r*��z'_start_server.<locals>.ServerThread.run� ��s�������� !�!%���!7�!7� ��$.� �!�*/�-�-�*?�*?� �'�(4�T�_�_�(E� �%�"�4�9�9�d�i�i����D��!'����'�'�)���� !� �� � �� !�s����BB�� B4�#B/�/B4c�����������������������d|�_���������|j������������������|�_��������|j������������������|�_��������d|�j������������������|�j������������������fz��|�_��������y�)NTz http://%s:%d/)rj��rV���server_portrY��r���)r:���ro��s��� r���rt��z)_start_server.<locals>.ServerThread.ready� ��s:�������D�L����D�I��*�*�D�I�&�$�)�)�T�Y�Y�)?�?�D�Hr���c������������������p�����d|�j�������������������_��������|�j���������������������������d|�_���������d|�_��������d|�_��������y)z&Stop the server and this thread nicelyTNF)rl��r���rX���rj��r���rT��s��� r����stopz(_start_server.<locals>.ServerThread.stop� ��s.������"&�D�N�N���I�I�K��"�D�N� �D�L��D�Hr���N)r)���r���r���r����r*��rt��r{��)rQ��re��rv��rw��rm��s��������r����ServerThreadrg��� ��s������� "� !� @� r���r|��g{�G�z�?)�http.server� email.messager[��rm��ro���BaseHTTPRequestHandlerrp��ri��r���rk��rj��rl���time�sleep)rL���hostnamerY��r|���threadrQ��re��rv��rw��r[��rm��s��� @@@@@@r���� _start_serverr���\ ��s��������p������T�[�[�7�7���,$�D�K�K�*�*��$�*&��&�y�'�'��&�P��*�h�� 5�F� �L�L�N���l�l�F�N�N�v�7G�7G�� � �3����l�l�F�N�N�v�7G�7G��Mr���c������������������^����� � ��� �����G��fd�dt����������������}�|����������fd���fd�� �fd�� �fd���fd���fd���fd �� �fd ����� � �� ��fd�}|�j������������������d�������r|�d d�}�|dk(��r�t��������j������������������j ������������������t��������j������������������j������������������t����������������������}t��������j������������������j������������������||��������}t��������|�������5�}dj������������������|j���������������������������������cddd��������S�|dk(��r�||��������S�t��������d|�d|�����������#�1�sw�Y����xY�w)a��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��������������������������e�Zd�Z��fd�Zy)�_url_handler.<locals>._HTMLDocc����������� �������:������d}d|z��}d|�d|�d�����������d|�d� S�)rv��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:���rw��rx���css_path�css_link�html_navbars��� �r���ry��z#_url_handler.<locals>._HTMLDoc.page� ��s/�������.�H�C���� ���H�k�m�X�?�� ?r���N)r)���r���r���ry��)r���s����r����_HTMLDocr���� ��s������� ?r���r���c�������������������������j������������������t��������j���������������������������dt��������j��������������������������d����dt��������j���������������������������d��������}�d|��d�j������������������t��������j������������������d����������������d �S�) Nz [r���r���r���z= <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> <form action="search" style='display:inline;'> <input type=text name=key size=15> <input type=submit value="Search"> </form> </div> </div> )r[��r����python_version�python_build�python_compiler)r���r)��s��� �r���r���z!_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�� Hr���c������������������������d��}��j������������������d�������}t��������j������������������D��cg�c] ��}|dk7��r|���}}�j������������������||��������}|d�j ������������������dd|�������z���g}i�}t��������j ������������������D�]#��}|j �������������������j������������������||����������������%�|j ������������������d��������dd j������������������|�������fS�c�c}w�) zModule Index page.c�����������������������d|��d|��d�S��Nr���r���r���r ���r#���s��� r���� bltinlinkz3_url_handler.<locals>.html_index.<locals>.bltinlink0 ��� ������15�t�<�<r���z/<strong class="title">Index of Modules</strong>r2��z<p>zBuilt-in Modulesr���zf<p align=right class="heading-text grey"><strong>pydoc</strong> by Ka-Ping Yee<ping@lfw.org></p>zIndex of ModulesrK���) r}��r ���r��r���r���r ���r���r���rX���)r���r}��r#����namesrx��r9��r���r)��s��� �r���� html_indexz _url_handler.<locals>.html_index- ��s�������� =���,�,�=� ���#&�":�":��(�":�$��J�&���":���(��#�#�E�9�5���U�T�_�_����&3��3��4������8�8�C��O�O�D�J�J�s�D�1�2���� ��� '� (��"�2�7�7�8�#4�4�4��(s����B>c���������������������� ��g�� � fd�}t��������j��������������������������5��t��������j������������������d��������d��}t����������������j ������������������||�|���������ddd��������d��}g�}� j������������������d�������}� D�]��\��}}|j �������������������||�������|z������������!�|� j������������������d|�z��d d j������������������|��������������z���}d|fS�#�1�sw�Y����oxY�w)zSearch results page.c������������������Z������|dd��dk(��r|d�d�dz���}�j������������������||xr�d|z���f��������y�r=��r����)r ���r]���r���� search_results��� �r���r$��z3_url_handler.<locals>.html_search.<locals>.callbackJ ��s=��������r�s�|�{�*�!�#�2�,��5��� � �'�4�+?�D�4�K�!@�Ar���r����c������������������������y�rB��r ��r?��s��� r���r&��z2_url_handler.<locals>.html_search.<locals>.onerrorQ ��s������r���r'��Nc�����������������������d|��d|��d�S�r���r ��r���s��� r���r���z4_url_handler.<locals>.html_search.<locals>.bltinlinkV ��r���r���z-<strong class="title">Search Results</strong>zkey = %sr���r���zSearch Results) r����r����r@��r)��r*��r}��r���r���rX���)r����r$��r&��r���r����r}��r#���r���rx��r���r)��s��� @�r����html_searchz!_url_handler.<locals>.html_searchE ��s���������� � B� �� $� $� &��#�#�H�-� ��O����#�w��?� �'� =�����,�,�;� ���(�J�D�$��N�N�9�T�?�T�1�2��(��T�_�_����g�v�{�{�7�';�=��=����)�)�%�'� &�s����5C�C c��������������������������d��}��j������������������d�������}t��������t��������j������������������j ���������������������������������}�j������������������||��������}|�j ������������������dd|�������z���}d|fS�)zIndex of topic texts available.c�����������������������d|��d|��d�S��Nz<a href="topic?key=r���r���r ��r���s��� r���r���z4_url_handler.<locals>.html_topics.<locals>.bltinlinkf ��� ������6:�D�A�Ar����$<strong class="title">INDEX</strong>�Topicsr���)r}��r���r1��r���r����r���r���)r���r}��r���rx��r)��s��� �r����html_topicsz!_url_handler.<locals>.html_topicsc ��sn������� B���,�,�2� ����v�}�}�)�)�+�,���#�#�E�9�5���T�_�_��g�x�)��)����!�!r���c���������������������������j������������������d�������}�t��������t��������j������������������j ���������������������������������}d��}�j������������������||�������}|��j ������������������dd|�������z���}d|fS�)zIndex of keywords.r���c�����������������������d|��d|��d�S�r���r ��r���s��� r���r���z6_url_handler.<locals>.html_keywords.<locals>.bltinlinkz ��r���r����Keywordsr���)r}��r���r1��r���r����r���r���)r}��r���r���rx��r)��s��� �r���� html_keywordsz#_url_handler.<locals>.html_keywordss ��sn��������,�,�2� ����v���+�+�-�.�� B���#�#�E�9�5���T�_�_����+��+���8�#�#r���c������������������������t��������j��������������������������}t��������||�������}|j������������������|��������\��}}|�|j������������������v�rd}nd}�j������������������d|z���������}d�j ������������������|�������z��}�j������������������|�d|�������}|rAt��������|j���������������������������������}d��}�j������������������||�������}�j������������������dd|�������}|�d|���d j������������������|||f�������fS�) zTopic or keyword help page.�KEYWORD�TOPICr���z <pre>%s</pre>r���c�����������������������d|��d|��d�S�r���r ��r���s��� r���r���z7_url_handler.<locals>.html_topicpage.<locals>.bltinlink� ��s ������:>��E�Er���r ��r*��rK���) r��r7��r1��r��r���r}��r���r���r���r���r���r���rX���) r���buf�htmlhelprx��r��rw��r}��r���r)��s ��� �r����html_topicpagez$_url_handler.<locals>.html_topicpage� ��s���������k�k�m���#�s�#��"�,�,�U�3���%��H�%�%�%��E��E��,�,�/�%�7� ���#�T�[�[��%:�:���?�?�5�7�H�=����5�;�;�=�)�E� F���$�$�U�I�6�E��L�L�!8�'�5�I�E� �%�(�����(�E�2�3�5�� 5r���c������������������������t��������|�d��������}|�|�dk7��rt��������d��������t��������|�������}�j������������������||��������}||fS�)NrT���)r��r3��zcould not find object)r��r8��r��r(��)r���r9���rw���contentr)��s��� �r����html_getobjz!_url_handler.<locals>.html_getobj� ��sI��������S�A�&���;�3�&�=��4�5�5��� ���-�-��S�)���g�~�r���c�������������������������j������������������d�������}dj�������������������fd�t��������t��������|�������|�������D����������������}|�j ������������������|�d|�������z���}d|�z��|fS�)Nz$<strong class="title">Error</strong>r���c��������������3����@����K����|�]��}�j������������������|������������y��wrB��)r[��)rc��ry��r)��s��� �r���re��z3_url_handler.<locals>.html_error.<locals>.<genexpr>� ��s#�����������F�D��6:�t�{�{�4�0�D�s����rk��z Error - %s)r}��rX���r���rC���r���)r���r���r}��rx��r)��s��� �r���� html_errorz _url_handler.<locals>.html_error� ��sf��������,�,�2� ����;�;��F�4�T�#�Y��D�F��F���T�_�_�S�'�8�D�D���c�!�8�+�+r���c������������������J�����|�}|�j������������������d�������r|�dd�}� �|�dv�r�� ��������\��}}n�|�dk(��r����������\��}}n�|�dk(��r����������\��}}nsd|�v�rd|�j������������������d�������\��}}}�|dk(��r��|��������\��}}nI|d k(��r ��� |��������\��}}n7|d k(��r|�dv�r�� ��������\��}}n# ��� |��������\��}}nt��������d���������� |��������\��}}�j ������������������||�������S�#�t��������$�r��� |��������\��}}Y��(w�xY�w#�t��������$�r��� |��������\��}}Y��Bw�xY�w#�t��������$�r}��||�������\��}}Y�d}~�`d}~ww�xY�w)zGenerate an HTML page for url.r:��N���)rK���r���r���r���rB��z search?keyz topic?keyzget?keyz bad pydoc url)r����r��r8��r��ry��)r����complete_urlrw��r����opr����r���r)��r���r���r���r���r���r���r���s��� ��������r���� get_html_pagez#_url_handler.<locals>.get_html_page� ��sf���������<�<�� ��c�r�(�C� ;��m�#�!+����w����!,����w�� �"�!.����w���� �]�]�3�/� ��A�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����� ;�'��c�:�N�E�7�� ;�s`����AD��:C��D��C)��&D��C&�#D��%C&�&D��)D��=D��?D���D�� D"�D�D"r9��rT���NrE��rK���rF��zunknown content type z for url )rt��r����r���r ����dirname�realpathr����rX���r����� readlinesrG���)r���rM��r���r���� path_herer����fpr)��r���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�<�<� �3�/�� �(�^�r��7�7�2�<�<�>�*���^� �� $��S�!�!� �L�#�N� O�O���^�s����D#�#D,T� localhost)�open_browserr���c����������������������ddl�}t��������t��������||��������}|j������������������rt ��������|j��������������������������y|j ������������������r�d}|r|j ������������������|j�������������������������� �t ��������d|j��������������������������t ��������|��������|j ������������������rZt��������d�������}|j��������������������������}|dk(��rn9|dk(��r|j ������������������|j��������������������������nt ��������|��������|j ������������������r�Z|j ������������������r|j���������������������������t ��������d��������yyy#�t��������t��������f$�r �t �����������������Y��Ew�xY�w#�|j ������������������r|j���������������������������t ��������d��������w�w�xY�w) 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. r���Nz"Server commands: [b]rowser, [q]uitzServer ready atzserver> r���r��zServer stopped) � webbrowserr���r���rk��r#��rj��r����r���r���r>��r���r���r{��)rY��r���r���r����serverthread�server_help_msgr���s��� r����browser���� ��s/������� ��x��>�L���� �l� � �!�����>����O�O�L�,�,�-� (��#�\�%5�%5�6��/�"��&�&��J�'���i�i�k���#�:���C�Z��O�O�L�$4�$4�5��/�*���&�&���#�#��!�!�#��&�'��$�'��� �"�8�,�� ��G� ����#�#��!�!�#��&�'��$�s%����$BD��D1�.D4��0D1�1D4��4*Ec������������������j�����t��������|�t���������������xr"�|�j������������������t��������j�������������������������dk\��S�r����)r.���rD���r#��r����sep)r����s��� r����ispathr�����s%�������a���5�!�&�&����.�A�"5�5r���c����������������������d|�v�s(t���������j������������������|�v�st��������j��������������������������|�v�ryt���������j������������������j ������������������t ���������������}t���������j������������������j ������������������|�������}|�j ��������������������������}||�v�r1t���������j������������������j������������������||�������s|j������������������|��������|j������������������dt��������j����������������������������������|S�)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. rK���Nr���) r����curdir�getcwdr ���r���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��Z�����(8�(8��Z�(P����J�'�����2�9�9�;�'��r���c������������������������t��������t��������j������������������t��������j������������������d����������}�|��|�t��������j������������������dd�yy)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. r���N)r���r ���r ����argv)r���s��� r����_adjust_cli_sys_pathr���%��s4������ �%�S�X�X�s�x�x��{�;�L���"������� r���c�����������������������ddl�}��G�d��dt���������������}t����������������� �|�j������������������t��������j������������������dd�d�������\��}}d}d}d}d}d}|D�]:��\��} } | d k(��rd }d }| dk(��r t��������| ���������y| dk(��rd }| }| d k(��rd }| dk(��s�7d }| }�<�|rt ��������|||���������y|s|�|D�]���}t��������|�������rBt��������j������������������j������������������|�������s#t��������d|z����������t��������j������������������d�������� �t��������|�������r*t��������j������������������j������������������|�������rt��������|�������}|rBt��������|�������r+t��������j������������������j������������������|�������rt!��������|��������n#t#��������|��������nt$��������j%������������������|d ������������y#�t&��������t(��������f$�r+}t��������|��������t��������j������������������d��������Y�d}~��d}~ww�xY�w#�|�j*������������������|f$�r}�t��������j������������������j-������������������t��������j������������������j/������������������t��������j������������������d�����������������d���} t��������dj1������������������| t��������j2����������������������������������Y�yw�xY�w)z@Command-line interface (looks at sys.argv to decide what to do).r���Nc�������������������������e�Zd�Zy)�cli.<locals>.BadUsageN)r)���r���r���r ��r���r����BadUsager���2��s�����r���r���rT���zbk:n:p:wFr���z-bTz-kz-pz-wz-n)r���r���zfile %r does not exist)r&��a���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���r ���r���r(��r���r���r���r ����existsr#���exitr����r��r���r/��r*��r���r��r����rk��r��r��r=��r���)r���r����optsr'���writing�start_serverr���rY��r����opt�val�argr����r���s��� r����clir���/��s�������#�9�#���M!��]�]�3�8�8�A�B�<��<� ��d������������H�C���d�{�#��#���d�{������d�{�#�����d�{����d�{�#������ ���4�(��F���8�^��C��c�{�2�7�7�>�>�#�#6��.��4�5������ ��#�;�2�7�7�>�>�#�#6�$�S�/�C���c�{�r�w�w�}�}�S�'9�!�#�� �� ��I�I�c�$�I�/������ �!2�3�� ��e��������� ��� �L�L�(�#��!��g�g���r�w�w�/�/������<�=�a�@�� ���:��F�s����F��; !�!�sQ����AG��2G��G��AG��6BF �G�� G� F>�8G��>G�G��BI�Ir2��r����)r���)� Python Library Documentation: %sr���N)r���r���NF)rK���N)rF��)dr@���r���r����r����r����r����r����r6���importlib._bootstrapr�����importlib._bootstrap_external�importlib.machinery�importlib.utilr���r��r���r���r���rM���r ���rE��r���r�����urllib.parser���r�����collectionsr����reprlibr���� tracebackr���r���r$���r>���r7���rI���rQ���rZ���r^���ra���rh���rl���rt���r���� IGNORECASErv���rx���r{���r����r����r����all_feature_namesr����r����r����r����r����r����r����r��r����r��r��r��rH��rt��rl��rr��r���r���r���r���r���r���r���r���r���r��r��rj���r$��r)��r��r!��r=���r*��r/��r1��r���r)��r(��r���r���r���r���r���r���r���r)���r ��r���r����<module>r������sc����%�L��(�� )� ��������������$�������� �� ������ �� ����������������+� ��1�f �!� A� ��%�G�����b�j�j�5�r�}�}�E��(� ���"��J�8�8�9���(�0� ���2� ��%�NK� ��K�&+�$� !���(�X6��6�t(�t��(�TW 7�c��W 7�v:�t��:�@X�c��X�t�G����"�H#��0 /�F� *2�X2� �6�*��y���O� ��y��>��KL��C�6�DE�!��"#��[��[�z��x��;��;�z <�V�riP�X (�4�+�� (�J6��8#�T!�l��z���E��r���