Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/awscli/__pycache__/ |
Upload File : |
o @&�a�I � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z d dl mZ e jZe j Z e jjZe jjZe jZe jZe jjjjZe jZe jjjZz d dlZejZW n eyg ejZY nw zd dlZW n eyy dZY nw e jdkZer�dZ ndZ G dd� de!�Z"G d d � d e#�Z$dd� Z%e j r�d dl&m'Z( d dl)Z)d dl*m+Z, d d l-m.Z. e/Z0dd� Z1dd� Z2dd� Z3d?dd�Z4d@dd�Z5n2d dl6Z6d dl7Z(d dl)Z)d dl8Z8d dl,Z,d d l9m.Z. e0Z0dd� Z1dd� Z2dd� Z3d?dd�Z4d@dd�Z5dd� Z:d d!� Z;d"d#� Z<d@d$d%�Z=d&d'� Z>d@d(d)�Z?ej@d*d+� �ZAz d d,lmBZB W dS e�yw d-ZCd.d/� ZDe�Ed0ejF�ZGe�Ed1ejF�ZHe�Ed2ejF�ZId3ZJd4d5� ZKe�Ed6ejL�ZMe�Ed7ejL�ZNe�Ed8ejL�ZOd9d9d9eJd:fd;d<�ZBd=d>� ZPY dS w )A� N)�six)�OrderedDict�win32�morezless -Rc s e Zd Z� fdd�Z� ZS )�StdinMissingErrorc s d}t t| ��|� d S )Nz;stdin is required for this operation, but is not available.)�superr �__init__)�self�message�� __class__� �//usr/lib/python3/dist-packages/awscli/compat.pyr D s �zStdinMissingError.__init__)�__name__� __module__�__qualname__r � __classcell__r r r r r C s r c @ s e Zd ZdZdd� Zdd� ZdS )�NonTranslatedStdouta This context manager sets the line-end translation mode for stdout. It is deliberately set to binary mode so that ` ` does not get added to the line ending. This can be useful when printing commands where a windows style line ending would cause errors. c C s. t jdkrdd l}|�t j�� tj�| _t jS �Nr r ) �sys�platform�msvcrt�setmode�stdout�fileno�os�O_BINARY� previous_mode)r r r r r � __enter__S s �zNonTranslatedStdout.__enter__c C s. t jdkrdd l}|�t j�� | j� d S d S r )r r r r r r r )r �type�value� tracebackr r r r �__exit__Z s �zNonTranslatedStdout.__exit__N)r r r �__doc__r r"