File: //lib/python3.9/site-packages/ansible/parsing/yaml/__pycache__/objects.cpython-39.pyc
a
�)gA) � @ s� d dl mZmZmZ eZd dlZd dlZd dl m
Z
d dlZd dlZd dlm
Z
d dlmZmZmZ G dd� de�ZG dd � d ee�ZG d
d� dee
�ZG dd
� d
ee�ZG dd� de
e�ZdS )� )�absolute_import�division�print_functionN)�Sequence)� text_type)�to_bytes�to_text� to_nativec @ s6 e Zd ZdZdZdZdZdd� Zdd� Ze ee�Z
dS )�AnsibleBaseYAMLObjectz�
the base class used to sub-class python built-in objects
so that we can add attributes to them during yaml parsing
Nr c C s | j | j| jfS �N)�_data_source�_line_number�_column_number��self� r �@/usr/lib/python3.9/site-packages/ansible/parsing/yaml/objects.py�_get_ansible_position, s z+AnsibleBaseYAMLObject._get_ansible_positionc C sD z|\}}}W n t tfy, td��Y n0 || _|| _|| _d S )Nzaansible_pos can only be set with a tuple/list of three values: source, line number, column number)� TypeError�
ValueError�AssertionErrorr r
r )r �obj�src�line�colr r r �_set_ansible_position/ s �
z+AnsibleBaseYAMLObject._set_ansible_position)�__name__�
__module__�__qualname__�__doc__r r
r r r �propertyZansible_posr r r r r
"