관리-도구
편집 파일: templates.cpython-311.pyc
� �܋fA � �� � d dl mZ d dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z erd dlmZ d dlmZ d d lmZ d d lmZ d dlmZ d dlmZ n# e$ r d d lmZ Y nw xY wd� Zd� Zd� Zd� Zd� Zd� ZdS )� )�TemplateSyntaxError)� mark_safe)�VERSION)� _functools�Hub)� TYPE_CHECKING)�OP)�Any)�Dict)�Optional)�Iterator)�Tuple)�Origin)�LoaderOriginc �z � t | d� � rt | j � � S t | d� � rt | j � � S t | t � � r]t | d� � rM| j }t |t t f� � r*t |d t � � rt |� � S d S )N�template_debug�django_template_source�sourcer )�hasattr�_get_template_frame_from_debugr �_get_template_frame_from_sourcer � isinstancer r �tuple�listr )� exc_valuer s �y/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/sentry_sdk/integrations/django/templates.py�!get_template_frame_from_exceptionr s� � � �y�*�+�+� H�-�i�.F�G�G�G� �y�2�3�3� �.��,� � � � �)�0�1�1� ;�g�i��6R�6R� ;��!���f�u�d�m�,�,� ;��F�1�I�v�1N�1N� ;�2�6�:�:�:��4� c �| � t | t t f� � r| rd� | d � � S d S | S )Nz [{}, ...]r )r r r �format)� template_names r �_get_template_name_descriptionr"