https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/utils/__pycache__/safestring.cpython-310.pyc
o

�a��@sHdZddlmZGdd�d�ZGdd�dee�ZeZdd�Zd	d
�ZdS)a8
Functions for working with "safe strings": strings that can be displayed safely
without further escaping in HTML. Marking something as a "safe string" means
that the producer of the string has already turned characters that should not
be interpreted by the HTML engine (e.g. '<') into the appropriate entities.
���wrapsc@seZdZdd�ZdS)�SafeDatacC�|S)z�
        Return the html representation of a string for interoperability.

        This allows other template engines to understand Django's SafeData.
        ���selfrr�9/usr/lib/python3/dist-packages/django/utils/safestring.py�__html__szSafeData.__html__N)�__name__�
__module__�__qualname__r
rrrr	rsrcs(eZdZdZ�fdd�Zdd�Z�ZS)�
SafeStringzb
    A str subclass that has been specifically marked as "safe" for HTML output
    purposes.
    cs"t��|�}t|t�rt|�S|S)z�
        Concatenating a safe string with another safe bytestring or
        safe string is safe. Otherwise, the result is no longer safe.
        )�super�__add__�
isinstancerr)r�rhs�t��	__class__rr	rs
zSafeString.__add__cCr�Nrrrrr	�__str__$szSafeString.__str__)rrr
�__doc__rr�
__classcell__rrrr	rs
rcst����fdd��}|S)Ncs��|i|���Srr)�args�kwargs��func�
safety_markerrr	�wrapped,sz"_safety_decorator.<locals>.wrappedr)rrrrrr	�_safety_decorator+sr cCs(t|d�r|St|�rtt|�St|�S)a

    Explicitly mark a string as safe for (HTML) output purposes. The returned
    object can be used everywhere a string is appropriate.

    If used on a method as a decorator, mark the returned data as safe.

    Can be called multiple times on a single string.
    r
)�hasattr�callabler �	mark_safer)�srrr	r#2s

	
r#N)	r�	functoolsrr�strr�SafeTextr r#rrrr	�<module>s


https://t.me/RX1948 - 2025