HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/botocore/docs/__pycache__/docstring.cpython-38.pyc
U

KD�g@�@stddlmZddlmZddlmZddlmZGdd�de�Z	Gdd�de	�Z
Gd	d
�d
e	�ZGdd�de	�Zd
S)�)�DocumentStructure��document_model_driven_method��document_paginate_method��document_wait_methodcsZeZdZdZ�fdd�Z�fdd�Zdd�Zdd	d
�Zdd�ZeZ	d
d�Z
dd�Z�ZS)�LazyLoadedDocstringa0Used for lazily loading docstrings

    You can instantiate this class and assign it to a __doc__ value.
    The docstring will not be generated till accessed via __doc__ or
    help(). Note that all docstring classes **must** subclass from
    this class. It cannot be used directly as a docstring.
    cs t���||_||_d|_dS)z�
        The args and kwargs are the same as the underlying document
        generation function. These just get proxied to the underlying
        function.
        N)�super�__init__�	_gen_args�_gen_kwargs�
_docstring��self�args�kwargs��	__class__��D/opt/cppython/lib/python3.8/site-packages/botocore/docs/docstring.pyrs
zLazyLoadedDocstring.__init__cst��|�S�N)r
�__new__)�clsrrrrrr'szLazyLoadedDocstring.__new__cOstd��dS)Nzq_write_docstring is not implemented. Please subclass from this class and provide your own _write_docstring method)�NotImplementedErrorrrrr�_write_docstring+s�z$LazyLoadedDocstring._write_docstring�cCs|jdkr|��|j�|�S)a�Expands tabs to spaces

        So this is a big hack in order to get lazy loaded docstring work
        for the ``help()``. In the ``help()`` function, ``pydoc`` and
        ``inspect`` are used. At some point the ``inspect.cleandoc``
        method is called. To clean the docs ``expandtabs`` is called
        and that is where we override the method to generate and return the
        docstrings.
        N)r�	_generate�
expandtabs)r�tabsizerrrr1s

zLazyLoadedDocstring.expandtabscCs|��Sr)r�rrrr�__str__?szLazyLoadedDocstring.__str__cCs|jdkr|��|_|jSr)r�_create_docstringr rrrrEs

zLazyLoadedDocstring._generatecCs0tddd�}|j|f|j�|j�|���d�S)NZ	docstring�html)�targetzutf-8)rrrr
Zflush_structure�decode)rZdocstring_structurerrrr"Ks���z%LazyLoadedDocstring._create_docstring)r)
�__name__�
__module__�__qualname__�__doc__rrrrr!�__repr__rr"�
__classcell__rrrrr	s
r	c@seZdZdd�ZdS)�ClientMethodDocstringcOst||�dSrrrrrrrVsz&ClientMethodDocstring._write_docstringN�r&r'r(rrrrrr,Usr,c@seZdZdd�ZdS)�WaiterDocstringcOst||�dSrrrrrrrz WaiterDocstring._write_docstringNr-rrrrr.Zsr.c@seZdZdd�ZdS)�PaginatorDocstringcOst||�dSrrrrrrr`sz#PaginatorDocstring._write_docstringNr-rrrrr/_sr/N)
Zbotocore.docs.bcdoc.restdocrZbotocore.docs.methodrZbotocore.docs.paginatorrZbotocore.docs.waiterr�strr	r,r.r/rrrr�<module>
sB