| Server IP : 43.141.49.92 / Your IP : 113.219.202.173 Web Server : Apache System : Linux VM-8-5-opencloudos 6.6.34-9.oc9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 19 19:35:45 CST 2024 x86_64 User : www ( 1000) PHP Version : 8.1.27 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.11/site-packages/__pycache__/ |
Upload File : |
�
�όd�* � �F � d Z ddlmZ dZdZdZdZ ddlmZ e Z
d� Zn# e$ r e
Zd � ZY nw xY w dd
lmZmZ n# e$ r dd
lmZmZ Y nw xY wddlmZmZ ddlZddlZ e� � Zdd�Zefd�Zd� Z G d� de� � Z G d� de� � Z G d� de� � Zd� Zd� Z dS )z7 Identify specific nodes in a JSON document (RFC 6901) � )�unicode_literalsu Stefan Kögl <stefan@skoegl.net>z2.4z2https://github.com/stefankoegl/python-json-pointerzModified BSD License)�izipc �, � | � d� � S )N�raw_unicode_escape)�encode��us �0/usr/lib/python3.11/site-packages/jsonpointer.py�<lambda>r / s � �1�8�8�$8�9�9� � c � � | S �N� r s r
r r 2 s � �1� r )�Mapping�Sequence)�tee�chainNTc �N � t |� � }|� | ||� � S )a� Resolves pointer against doc and sets the value of the target within doc.
With inplace set to true, doc is modified as long as pointer is not the
root.
>>> obj = {'foo': {'anArray': [ {'prop': 44}], 'another prop': {'baz': 'A string' }}}
>>> set_pointer(obj, '/foo/anArray/0/prop', 55) == {'foo': {'another prop': {'baz': 'A string'}, 'anArray': [{'prop': 55}]}}
True
>>> set_pointer(obj, '/foo/yet another prop', 'added prop') == {'foo': {'another prop': {'baz': 'A string'}, 'yet another prop': 'added prop', 'anArray': [{'prop': 55}]}}
True
>>> obj = {'foo': {}}
>>> set_pointer(obj, '/foo/a%20b', 'x') == {'foo': {'a%20b': 'x' }}
True
)�JsonPointer�set)�doc�pointer�value�inplaces r
�set_pointerr A s'