AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/markupsafe/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /lib/python3/dist-packages/markupsafe/__pycache__/__init__.cpython-310.pyc
o

V�`�"�@sPddlZddlZddlZddlZejr ddlZGdd�dej�Z	dZ
e�d�Zde
dejdfd	d
�ZGdd�de
�ZGd
d�dej�Ze�dee�Zdedejejdejejgefdefdd�ZGdd�d�ZzddlmZddlmZddlmZddlmZWdSe y�ddl!mZddl!mZddl!mZddl!mZYdSw)�Nc@seZdZdefdd�ZdS)�HasHTML�returncCsdS�N���selfrr�5/usr/lib/python3/dist-packages/markupsafe/__init__.py�__html__
�zHasHTML.__html__N)�__name__�
__module__�__qualname__�strr	rrrrr	srz2.0.1z(<!--.*?-->|<[^>]*>)�namer).�Markupc	s:tt|��t���dddtjdtjddf�fdd��}|S)Nrr�args�kwargsrcsDtt|�t|�|j�}t||��|j�|��|g|�Ri|���Sr)�_escape_argspec�list�	enumerate�escape�items�	__class__)rrr��origrr�wrappedsz)_simple_escaping_wrapper.<locals>.wrapped)�getattrr�	functools�wraps�t�Any)rrrrr�_simple_escaping_wrappers
$r!c	s>eZdZdZdZ	d>dejdejeded	df�fd
d�
Z	d?dd
�Z
dejedfd	df�fdd�Zdejedfd	dfdd�Z
ded	df�fdd�ZeZdejd	df�fdd�Zd	ef�fdd�Zdejejedfd	df�fdd�Zejje_	d@d ejed!ed	ejdf�fd"d#�
Zejje_	d@d ejed!ed	ejdf�fd$d%�
Zejje_dAd'ed	ejdf�fd(d)�
Zejje_d	efd*d+�Zd	efd,d-�Zed.ejd	dfd/d0��Zd1D]	Zee�e �e<q�[d ed	ej!d2f�fd3d4�Z"d ed	ej!d2f�fd5d6�Z#d7ejd8ejd	dfd9d:�Z$d;ed	dfd<d=�Z%�Z&S)Bra�A string that is ready to be safely inserted into an HTML or XML
    document, either because it was escaped or because it was marked
    safe.

    Passing an object to the constructor converts it to text and wraps
    it to mark it safe without escaping. To escape the text, use the
    :meth:`escape` class method instead.

    >>> Markup("Hello, <em>World</em>!")
    Markup('Hello, <em>World</em>!')
    >>> Markup(42)
    Markup('42')
    >>> Markup.escape("Hello, <em>World</em>!")
    Markup('Hello &lt;em&gt;World&lt;/em&gt;!')

    This implements the ``__html__()`` interface that some frameworks
    use. Passing an object that implements ``__html__()`` will wrap the
    output of that method, marking it safe.

    >>> class Foo:
    ...     def __html__(self):
    ...         return '<a href="/foo">foo</a>'
    ...
    >>> Markup(Foo())
    Markup('<a href="/foo">foo</a>')

    This is a subclass of :class:`str`. It has the same methods, but
    escapes their arguments and returns a ``Markup`` instance.

    >>> Markup("<em>%s</em>") % ("foo & bar",)
    Markup('<em>foo &amp; bar</em>')
    >>> Markup("<em>Hello</em> ") + "<foo>"
    Markup('<em>Hello</em> &lt;foo&gt;')
    r�N�strict�base�encoding�errorsrcs:t|d�r	|��}|durt��||�St��||||�S�Nr	)�hasattrr	�super�__new__)�clsr$r%r&�rrrr*Es

zMarkup.__new__cCs|Srrrrrrr	Pr
zMarkup.__html__�otherrcs0t|t�s
t|d�r|�t��|�|���StSr')�
isinstancerr(rr)�__add__r�NotImplemented�rr-r,rrr/SszMarkup.__add__cCs(t|t�s
t|d�r|�|��|�StSr')r.rr(rr/r0r1rrr�__radd__YszMarkup.__radd__�numcs t|t�r|�t��|��StSr)r.�intrr)�__mul__r0)rr3r,rrr5_s
zMarkup.__mul__�argcs@t|t�rt�fdd�|D��}nt|�j�}��t��|��S)Nc3s�|]	}t|�j�VqdSr)�_MarkupEscapeHelperr)�.0�xrrr�	<genexpr>is�z!Markup.__mod__.<locals>.<genexpr>)r.�tupler7rrr)�__mod__)rr6r,rrr<gs
zMarkup.__mod__cs|jj�dt����d�S)N�(�))rrr)�__repr__rr,rrr?o�zMarkup.__repr__�seqcs|�t��t|j|���Sr)rr)�join�mapr)rrAr,rrrBrr@zMarkup.join����sep�maxsplitc��fdd�t��||�D�S)Nc�g|]}��|��qSrr,�r8�vrrr�
<listcomp>z�z Markup.split.<locals>.<listcomp>)r)�split�rrErFr,rrrMw�zMarkup.splitcrG)NcrHrr,rIrrrrK�rLz!Markup.rsplit.<locals>.<listcomp>)r)�rsplitrNr,rrrP~rOz
Markup.rsplitF�keependscs�fdd�t��|�D�S)NcrHrr,rIrrrrK�rLz%Markup.splitlines.<locals>.<listcomp>)r)�
splitlines)rrQr,rrrR�r@zMarkup.splitlinescCsddlm}|t|��S)u�Convert escaped markup back into a text string. This replaces
        HTML entities with the characters they represent.

        >>> Markup("Main &raquo; <em>About</em>").unescape()
        'Main » <em>About</em>'
        r)�unescape)�htmlrSr)rrSrrrrS�szMarkup.unescapecCs"d�t�d|����}t|���S)u�:meth:`unescape` the markup, remove tags, and normalize
        whitespace to single spaces.

        >>> Markup("Main &raquo;	<em>About</em>").striptags()
        'Main » About'
        � r")rB�
_striptags_re�subrMrrS)r�strippedrrr�	striptags�szMarkup.striptags�scCst|�}|j|ur
||�S|S)ztEscape a string. Calls :func:`escape` and ensures that for
        subclasses the correct type is returned.
        )rr)r+rZ�rvrrrr�s
z
Markup.escape)�__getitem__�
capitalize�title�lower�upper�replace�ljust�rjust�lstrip�rstrip�center�strip�	translate�
expandtabs�swapcase�zfill)rrrc�4t��|�|��\}}}|j}||�||�||�fSr)r)�	partitionrr�rrE�lrZ�rr+r,rrrm��zMarkup.partitioncrlr)r)�
rpartitionrrrnr,rrrr�rqzMarkup.rpartitionrrcOst|j�}|�|�|||��Sr)�EscapeFormatterrr�vformat)rrr�	formatterrrr�format�s
z
Markup.format�format_speccCs|rtd��|S)Nz,Unsupported format specification for Markup.)�
ValueError)rrwrrr�__html_format__�szMarkup.__html_format__)r"Nr#)rr)NrD)F)'rrr
�__doc__�	__slots__rr �Optionalrr*r	�Unionr/r2r4r5�__rmul__r<r?�IterablerB�ListrMrP�boolrRrSrY�classmethodr�methodr!�locals�Tuplermrrrvry�
__classcell__rrr,rrsj#�����
 &
����
����


rcsPeZdZdZdejejgefddf�fdd�Zdejde	de	fd	d
�Z
�ZS)rs�rrrNcs||_t���dSr)rr)�__init__)rrr,rrr��szEscapeFormatter.__init__�valuerwcCsjt|d�r|�|�}n#t|d�r$|rtd|�dt|��d���|��}n
tj�||t|��}t|�	|��S)Nryr	zFormat specifier z given, but z{ does not define __html_format__. A class that defines __html__ must define __html_format__ to work with format specifiers.)
r(ryrx�typer	�string�	Formatter�format_fieldrr)rr�rwr[rrrr��s

�
zEscapeFormatter.format_field)rrr
r{r�Callabler rr�rr�r�rrr,rrs�s$ rs�_ListOrDict�obj�iterablercCs2|D]\}}t|t�st|d�r||�||<q|S)z,Helper for various string-wrapped functions.r	)r.rr()r�r�r�keyr�rrrr�s
�rc@s�eZdZdZdZdejdejejgefddfdd�Z	d	ejddfd
d�Z
defdd
�Zdefdd�Z
defdd�Zdefdd�ZdS)r7z"Helper for :meth:`Markup.__mod__`.�r�rr�rrNcCs||_||_dSrr�)rr�rrrrr�s
z_MarkupEscapeHelper.__init__�itemcCst|j||j�Sr)r7r�r)rr�rrrr\sz_MarkupEscapeHelper.__getitem__cCst|�|j��Sr)rrr�rrrr�__str__	sz_MarkupEscapeHelper.__str__cCst|�t|j���Sr)rr�reprr�rrrrr?sz_MarkupEscapeHelper.__repr__cC�
t|j�Sr)r4r�rrrr�__int__�
z_MarkupEscapeHelper.__int__cCr�r)�floatr�rrrr�	__float__r�z_MarkupEscapeHelper.__float__)rrr
rzr{rr r�rr�r\rr�r?r4r�r�r�rrrrr7�s&r7�r�)�
escape_silent)�soft_str)�soft_unicode)"r�rer��typingr�
TYPE_CHECKING�typing_extensions�te�Protocolr�__version__�compilerVrr�r!rr�rs�TypeVarr�dictr�rr rr7�	_speedupsrr�r�r��ImportError�_nativerrrr�<module>sF
8�
��
��

Anon7 - 2022
AnonSec Team