File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/libcloud/common/__pycache__/xmlrpc.cpython-310.pyc
Back
o ;j� � @ s� d Z ddlmZmZ ddlmZmZ ddlmZm Z ddl mZ G dd� de�Z G dd � d �ZG d d� dee�ZG dd � d e �ZdS )z+ Base classes for working with xmlrpc APIs � )�Dict�Type)�httplib� xmlrpclib)�Response� Connection)� LibcloudErrorc @ s e Zd ZdS )� ProtocolErrorN)�__name__� __module__�__qualname__� r r �J/opt/saltstack/salt/lib/python3.10/site-packages/libcloud/common/xmlrpc.pyr s r c @ s e Zd ZdZi Zdd� ZdS )�ErrorCodeMixina This is a helper for API's that have a well defined collection of error codes that are easily parsed out of error messages. It acts as a factory: it finds the right exception for the error code, fetches any parameters it needs from the context and raises it. c C sl | j �|d �}|d u r d S | jj}| jj}i }t|d�r,|jD ]}||v r+|| ||<