$33 GRAYBYTE WORDPRESS FILE MANAGER $68

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib64/python3.7/site-packages/markupsafe/__pycache__/

HOME
Current File : /opt/alt/python37/lib64/python3.7/site-packages/markupsafe/__pycache__//__init__.cpython-37.pyc
B

V�`�"�@sLddlZddlZddlZddlZejr@ddlZGdd�dej�Z	dZ
e�d�Ze
ejdd�dd	�ZGd
d�de
�ZGdd
�d
ej�Ze�dee�Zeejejejejgefed�dd�ZGdd�d�Zy4ddlmZddlmZddlmZddlmZWnFe k
�rFddl!mZddl!mZddl!mZddl!mZYnXdS)�Nc@seZdZed�dd�ZdS)�HasHTML)�returncCsdS)N�)�selfrr�F/opt/alt/python37/lib64/python3.7/site-packages/markupsafe/__init__.py�__html__
szHasHTML.__html__N)�__name__�
__module__�__qualname__�strrrrrrr	srz2.0.1z(<!--.*?-->|<[^>]*>)).�Markup)�namercs4tt|��t���dtjtjdd��fdd��}|S)Nr)r�args�kwargsrcs>tt|�t|�|j�}t||��|j�|��|f|�|��S)N)�_escape_argspec�list�	enumerate�escape�items�	__class__)rrr)�origrr�wrappedsz)_simple_escaping_wrapper.<locals>.wrapped)�getattrr�	functools�wraps�t�Any)r
rr)rr�_simple_escaping_wrappers
rcseZdZdZdZd;ejejeedd��fdd�
Z	dd	�d
d�Z
ejedfdd
��fdd�Zejedfdd
�dd�Z
edd��fdd�ZeZejdd��fdd�Zed	��fdd�Zejejedfdd��fdd�Zejje_d<ejeeejdd��fdd �
Zejje_d=ejeeejdd��fd!d"�
Zejje_d>eejdd$��fd%d&�
Zejje_ed	�d'd(�Zed	�d)d*�Zeejdd+�d,d-��Zxd.D]Zee�e �e<�q�W[eej!d/d0��fd1d2�Z"eej!d/d0��fd3d4�Z#ejejdd5�d6d7�Z$edd8�d9d:�Z%�Z&S)?ra�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|��}|dkr(t��||�St��||||�S)Nr)�hasattrr�super�__new__)�clsr r!r")rrrr%Es

zMarkup.__new__)rcCs|S)Nr)rrrrrPszMarkup.__html__r)�otherrcs0t|t�st|d�r,|�t��|�|���StS)Nr)�
isinstancerr#rr$�__add__r�NotImplemented)rr')rrrr)SszMarkup.__add__cCs(t|t�st|d�r$|�|��|�StS)Nr)r(rr#rr)r*)rr'rrr�__radd__YszMarkup.__radd__)�numrcs t|t�r|�t��|��StS)N)r(�intrr$�__mul__r*)rr,)rrrr._s
zMarkup.__mul__)�argrcs@t|t�r"t�fdd�|D��}nt|�j�}��t��|��S)Nc3s|]}t|�j�VqdS)N)�_MarkupEscapeHelperr)�.0�x)rrr�	<genexpr>isz!Markup.__mod__.<locals>.<genexpr>)r(�tupler0rrr$�__mod__)rr/)r)rrr5gs
zMarkup.__mod__cs|jj�dt����d�S)N�(�))rrr$�__repr__)r)rrrr8oszMarkup.__repr__)�seqrcs|�t��t|j|���S)N)rr$�join�mapr)rr9)rrrr:rszMarkup.join���)�sep�maxsplitrcs�fdd�t��||�D�S)Ncsg|]}��|��qSr)r)r1�v)rrr�
<listcomp>zsz Markup.split.<locals>.<listcomp>)r$�split)rr=r>)r)rrrAwszMarkup.splitcs�fdd�t��||�D�S)Ncsg|]}��|��qSr)r)r1r?)rrrr@�sz!Markup.rsplit.<locals>.<listcomp>)r$�rsplit)rr=r>)r)rrrB~sz
Markup.rsplitF)�keependsrcs�fdd�t��|�D�S)Ncsg|]}��|��qSr)r)r1r?)rrrr@�sz%Markup.splitlines.<locals>.<listcomp>)r$�
splitlines)rrC)r)rrrD�szMarkup.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)�htmlrEr)rrErrrrE�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)r:�
_striptags_re�subrArrE)r�strippedrrr�	striptags�szMarkup.striptags)�srcCst|�}|j|k	r||�S|S)ztEscape a string. Calls :func:`escape` and ensures that for
        subclasses the correct type is returned.
        )rr)r&rL�rvrrrr�s
z
Markup.escape)�__getitem__�
capitalize�title�lower�upper�replace�ljust�rjust�lstrip�rstrip�center�strip�	translate�
expandtabs�swapcase�zfill)rrr)r=rcs4t��|�|��\}}}|j}||�||�||�fS)N)r$�	partitionrr)rr=�lrL�rr&)rrrr^�szMarkup.partitioncs4t��|�|��\}}}|j}||�||�||�fS)N)r$�
rpartitionrr)rr=r_rLr`r&)rrrra�szMarkup.rpartition)rrrcOst|j�}|�|�|||��S)N)�EscapeFormatterrr�vformat)rrr�	formatterrrr�format�s
z
Markup.format)�format_specrcCs|rtd��|S)Nz,Unsupported format specification for Markup.)�
ValueError)rrfrrr�__html_format__�szMarkup.__html_format__)rNr)Nr<)Nr<)F)'rr	r
�__doc__�	__slots__rr�Optionalrr%r�Unionr)r+r-r.�__rmul__r5r8�Iterabler:�ListrArB�boolrDrErK�classmethodr�methodr�locals�Tupler^rarerh�
__classcell__rr)rrrsB"	$




rcsJeZdZdZejejgefdd��fdd�Zeje	e	d�dd�Z
�ZS)	rb)rN)rrcs||_t���dS)N)rr$�__init__)rr)rrrrv�szEscapeFormatter.__init__)�valuerfrcCsjt|d�r|�|�}nFt|d�rH|r>td|�dt|��d���|��}ntj�||t|��}t|�	|��S)NrhrzFormat 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#rhrg�typer�string�	Formatter�format_fieldrr)rrwrfrMrrrr{�s


zEscapeFormatter.format_field)rr	r
rjr�Callablerrrvrr{rurr)rrrb�s"rb�_ListOrDict)�obj�iterablerrcCs6x0|D](\}}t|t�s"t|d�r||�||<qW|S)z,Helper for various string-wrapped functions.r)r(rr#)r~rr�keyrwrrrr�src@s�eZdZdZdZejejejgefdd�dd�Z	ejdd�dd	�Z
ed
�dd�Zed
�d
d�Z
ed
�dd�Zed
�dd�ZdS)r0z"Helper for :meth:`Markup.__mod__`.)r~rN)r~rrcCs||_||_dS)N)r~r)rr~rrrrrvsz_MarkupEscapeHelper.__init__)�itemrcCst|j||j�S)N)r0r~r)rr�rrrrNsz_MarkupEscapeHelper.__getitem__)rcCst|�|j��S)N)rrr~)rrrr�__str__	sz_MarkupEscapeHelper.__str__cCst|�t|j���S)N)rr�reprr~)rrrrr8sz_MarkupEscapeHelper.__repr__cCs
t|j�S)N)r-r~)rrrr�__int__sz_MarkupEscapeHelper.__int__cCs
t|j�S)N)�floatr~)rrrr�	__float__sz_MarkupEscapeHelper.__float__)rr	r
rirjrrr|rrvrNrr�r8r-r�r�r�rrrrr0�s"r0�)r)�
escape_silent)�soft_str)�soft_unicode)"r�rery�typingr�
TYPE_CHECKINGZtyping_extensions�teZProtocolr�__version__�compilerHrr|rrrzrb�TypeVarr�dictr}rnrrr0Z	_speedupsrr�r�r��ImportErrorZ_nativerrrr�<module>s4
8	


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 7.12 PM
root / root
0755
__init__.cpython-37.opt-1.pyc
10.364 KB
24 Apr 2023 7.06 PM
root / root
0644
__init__.cpython-37.pyc
10.364 KB
24 Apr 2023 7.06 PM
root / root
0644
_native.cpython-37.opt-1.pyc
2.229 KB
24 Apr 2023 7.06 PM
root / root
0644
_native.cpython-37.pyc
2.229 KB
24 Apr 2023 7.06 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF