관리-도구
편집 파일: runtime.cpython-39.pyc
a �`�w � @ sJ d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd l mZ dd l mZ ddl m Z ddl mZ dd l mZ ddl mZ ddl mZ ddl mZ ddl mZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z g d�Z!eZ"dd� Z#dd � Z$d!d"� Z%d?d#d$�Z&G d%d&� d&e'�Z(d'd(� Z)G d)d*� d*e*�Z+efd+d,�Z,G d-d.� d.ee+��Z-ej.�/e-� G d/d0� d0e'�Z0e G d1d2� d2��Z1G d3d4� d4e'�Z2eG d5d6� d6e'��Z3d@d7d8�Z4G d9d:� d:e3�Z5eG d;d<� d<e3��Z6eG d=d>� d>e3��Z7e3`8e5`8e6`8e7`8dS )Az;The runtime functions and state used by compiled templates.� N)�chain)� MethodType)�escape)�Markup)�soft_unicode� )�abc)�imap)�implements_iterator)�implements_to_string)� iteritems)�PY2)�string_types)� text_type)�with_metaclass)�TemplateNotFound)�TemplateRuntimeError)�UndefinedError)�EvalContext)�concat)�evalcontextfunction)�internalcode)�missing)� Namespace)�object_type_repr)�LoopContext�TemplateReference�Macror r r r r �markup_join�unicode_join� to_string�identityr r � Undefinedc C s | S )zLReturns its argument. Useful for certain things in the environment. � ��xr# r# �2/usr/lib/python3.9/site-packages/jinja2/runtime.pyr! 7 s r! c C sL g }t t| �}|D ]0}|�|� t|d�rtd��t||�� S qt|�S )z@Concatenation that escapes if necessary and converts to unicode.�__html__� )r r �append�hasattrr �joinr r )�seq�buf�iterator�argr# r# r&