| Server IP : 162.144.4.212 / Your IP : 216.73.216.108 Web Server : Apache System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : cozeellc ( 2980) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/__pycache__/ |
Upload File : |
a
'�Dgm( � @ s� d dl Z d dlmZ d dlmZ d dlmZmZmZm Z d dl
Z
d dlmZ e �
e�ZG dd� d�Zdd � Zee d
�dd�Zeee ee d
�dd�ZG dd� de
j�ZG dd� de
jj�Ze�d�e eeeef f d�dd��Ze�d�ddd��ZdS )� N)�defaultdict)�chain)�Any�Dict�List�Tuple)�performancec @ s2 e Zd Zeejejd�dd�Zdd� Zdd� ZdS ) �SchemaPathMarks��path�
start_mark�end_markc C s || _ || _|| _d S �Nr
)�selfr r r
� r �6/usr/lib/python3.9/site-packages/cloudinit/safeyaml.py�__init__ s zSchemaPathMarks.__init__c C sp |j j| j jk s |jj| jjkr$dS |j j| j jkrH|j j| j jk rHdS |jj| jjkrl|jj| jjkrldS dS )z;Return whether other start/end marks are within self marks.FT)r �liner
�column�r �otherr r r �__contains__ s ������zSchemaPathMarks.__contains__c C s@ | j j|j jko>| j j|j jko>| jj|jjko>| jj|jjkS r )r r r r
r r r r �__eq__/ s ���zSchemaPathMarks.__eq__N) �__name__�
__module__�__qualname__�str�yamlZMarkr r r r r r r r s r c C s0 |d d d� D ]}| |v r| |ks| S qd S )N���r )Z
child_mark�marks�markr r r �_find_closest_parent8 s
r! )�
line_marksc C s\ | D ]R}t || �}|r|j�dd�\}}|j|jksB|j�|j�s|j�||jd�|_qdS )zP
Update any SchemaPathMarks.path for items not under the proper parent.
�.� N)r! r �rsplit�
startswith�replace)r"