Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/libcloud/common/__pycache__/aws.cpython-39.pyc
Ðазад
a q�h�D � @ s� d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dlZd dlZd dlZd dlm Z zd dl ZW n ey� d dlZY n0 d dl mZ d dl mZ d d l mZ d d lmZmZmZ d dlmZ d dlmZmZ d d l mZmZmZ d dlmZmZ g d�ZdZ dZ!d�"� Z#G dd� de�Z$G dd� de$�Z%G dd� de�Z&G dd� de'�Z(G dd� de(�Z)G dd� de(�Z*G dd � d �Z+G d!d"� d"e&�Z,G d#d$� d$e�Z-d,d&d'�Z.d(d)� Z/G d*d+� d+e�Z0dS )-� )�Dict)�Optional)�TypeN)�datetime)�sha256)�ET)� _real_unicode)� basestring)�ConnectionUserAndKey�XmlResponse� BaseDriver)�JsonResponse)�InvalidCredsError�MalformedResponseError)�b�httplib�urlquote)�findtext�findall)�AWSBaseResponse�AWSGenericResponse�AWSTokenConnection�SignedAWSConnection�AWSRequestSignerAlgorithmV2�AWSRequestSignerAlgorithmV4� AWSDriver�2zUNSIGNED-PAYLOADa� "params" dictionary contains an attribute "%s" which value (%s, %s) is not a string. Parameters are sent via query parameters and not via request body and as such, all the values need to be of a simple type (string, int, bool). For arrays and other complex types, you should use notation similar to this one: params['TagSpecification.1.Tag.Value'] = 'foo' params['TagSpecification.2.Tag.Value'] = 'bar' See https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html for details. c @ s e Zd ZdZdd� ZdS )r Nc C s( t |d| jd�}t |d| jd�}||fS )z� Parse code and message from the provided error element. :return: ``tuple`` with two elements: (code, message) :rtype: ``tuple`` ZCode��element�xpath� namespace�Message)r r )�selfr �code�message� r% ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/libcloud/common/aws.py�_parse_error_detailsN s ��z$AWSBaseResponse._parse_error_details)�__name__� __module__�__qualname__r r'