%PDF- %PDF-
| Direktori : /snap/core24/2307/usr/lib/python3/dist-packages/cloudinit/__pycache__/ |
| Current File : //snap/core24/2307/usr/lib/python3/dist-packages/cloudinit/__pycache__/templater.cpython-312.pyc |
�
�qgj: � � � d dl Z d dlZd dlZd dlZd dlmZmZ d dlmZ d dl m
Z
d dl mZ d dl m
Z
d dlmZ ej e� ZdZ G d � d
e� Z G d� de� Z e
j, d
� d� � Zd� Zd� Zdd�Zd� Zdd�Zy)� N)�DebugUndefined�TemplateSyntaxError)�SandboxedEnvironment)�performance)�
type_utils)�util)�
write_filezCI_MISSING_JINJA_VAR/c
�X � � e Zd Zdeddf� fd�Zd� Ze ddedededefd �� Zd
Z � xZ
S )�JinjaSyntaxParsingException�error�returnNc � �� t �| � |j xs d|j |j |j
� |j | _ y )Nzunknown syntax error)�super�__init__�message�lineno�name�filename�source)�selfr � __class__s ��5/usr/lib/python3/dist-packages/cloudinit/templater.pyr z$JinjaSyntaxParsingException.__init__! sA �� � ����M�M�3�3��L�L��J�J��N�N�
� �l�l��� c � � | j | j | j | j j � | j dz
j � �� S )�;Avoid jinja2.TemplateSyntaxError multi-line __str__ format.� ��syntax_error�line_number�line_content)�format_error_messager r r �
splitlines�strip�r s r �__str__z#JinjaSyntaxParsingException.__str__- sN � ��(�(����������/�/�1�$�+�+��/�B�H�H�J� )�
�
r r r r c �X � |rd|� �nd}t j j | ||�� S )r z: � r )r �message_template�formatr s r r! z0JinjaSyntaxParsingException.format_error_message5 s<