File: //snap/core22/2111/lib/python3/dist-packages/__pycache__/jsonpatch.cpython-310.pyc
o
M`�p � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZzddlm Z W n e
y/ eZ Y nw ddlm
Z
mZ dZdZz
ddlmZmZ W n e
yY ddlmZmZ eZY nw dZd Zd
ZdZejdkrkeefZG d
d� de�ZG dd� de�ZG dd� de�Z G dd� dee!�Z"dd� Z#ej$ej%e#d�Z&de
fdd�Z'e
fdd�Z(G dd� de)�Z*G dd � d e*�Z+G d!d"� d"e*�Z,G d#d$� d$e*�Z-G d%d&� d&e*�Z.G d'd(� d(e*�Z/G d)d*� d*e*�Z0G d+d,� d,e)�Z1G d-d.� d.e)�Z2d/d0� Z3dS )1z Apply JSON-Patches (RFC 6902) � )�unicode_literalsN)�MappingProxyType)�JsonPointer�JsonPointerException� )�MutableMapping�MutableSequenceu Stefan Kögl <stefan@skoegl.net>z1.32z0https://github.com/stefankoegl/python-json-patchzModified BSD License)� r c @ � e Zd ZdZdS )�JsonPatchExceptionzBase Json Patch exceptionN��__name__�
__module__�__qualname__�__doc__� r r �+/usr/lib/python3/dist-packages/jsonpatch.pyr J � r c @ r
)�InvalidJsonPatchz, Raised if an invalid JSON Patch is created Nr r r r r r N r r c @ r
)�JsonPatchConflicta
Raised if patch could not be applied due to conflict situation such as:
- attempt to add object key when it already exists;
- attempt to operate with nonexistence object key;
- attempt to insert value to array at position beyond its size;
- etc.
Nr r r r r r R r r c @ r
)�JsonPatchTestFailedz A Test operation failed Nr r r r r r [ r r c C s<