Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
lib
/
python3
/
dist-packages
/
botocore
/
docs
/
__pycache__
/
Filename :
sharedexample.cpython-310.pyc
back
Copy
o .&�an$ � @ sP d dl Z d dlZd dlmZ d dlmZ d dlmZ G dd� de�Z dd� Z dS ) � N)�parse_timestamp)�escape_controls)�sixc @ sx e Zd Zdd� Zdd� Zdd� Zdd� Z dd d�Zdd � Zdd� Z dd� Z dd� Zdd� Zdd� Z dd� Zdd� ZdS )�SharedExampleDocumenterc C sJ |j �� |�|�d�� |j �� | �||||j� | �|||j� dS )a8 Documents a single shared example based on its definition. :param example: The model of the example :param prefix: The prefix to use in the method example. :param section: The section to write to. :param operation_model: The model of the operation used in the example �descriptionN) �style� new_paragraph�write�get�new_line�document_input�input_shape�document_output�output_shape)�self�example�prefix�section�operation_model� r �=/usr/lib/python3/dist-packages/botocore/docs/sharedexample.py�document_shared_example s �z/SharedExampleDocumenter.document_shared_examplec C s� |� d�}|j�� |d ur|�|� |�di �}|�d�}|r%|�d�}|� d�}| �|||g |� |� d�} | j�� | j�� | �d� | j�� d S )N�input�comments� parameterszinput-closezprint(response))�add_new_sectionr �start_codeblockr r �_document_paramsr � end_codeblock) r r r r �shape� input_section�paramsr � param_section�closing_sectionr r r r ( s z&SharedExampleDocumenter.document_inputc C s� |� d�}|j�� |�d� |j�� |j�� |�di �}ddi|d<