403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/matplotlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/matplotlib/__pycache__/docstring.cpython-310.pyc
o

�:�aw�@sTddlZGdd�d�Zdd�ZGdd�de�ZGdd	�d	e�Zd
d�Ze�ZZdS)�Nc@s(eZdZdZdd�Zdd�Zdd�ZdS)	�SubstitutionaG
    A decorator that performs %-substitution on an object's docstring.

    This decorator should be robust even if ``obj.__doc__`` is None (for
    example, if -OO was passed to the interpreter).

    Usage: construct a docstring.Substitution with a sequence or dictionary
    suitable for performing substitution; then decorate a suitable function
    with the constructed object, e.g.::

        sub_author_name = Substitution(author='Jason')

        @sub_author_name
        def some_function(x):
            "%(author)s wrote this function"

        # note that some_function.__doc__ is now "Jason wrote this function"

    One can also use positional arguments::

        sub_first_last_names = Substitution('Edgar Allen', 'Poe')

        @sub_first_last_names
        def some_function(x):
            "%s %s wrote the Raven"
    cOs"|r|rtd��|p||_}dS)Nz+Only positional or keyword args are allowed)�	TypeError�params)�self�args�kwargsr�r�6/usr/lib/python3/dist-packages/matplotlib/docstring.py�__init__szSubstitution.__init__cCs|jr
t�|j�|j|_|S�N)�__doc__�inspect�cleandocr)r�funcrrr	�__call__$szSubstitution.__call__cOs|jj|i|��dS)zW
        Update ``self.params`` (which must be a dict) with the supplied args.
        N)r�update)rrrrrr	r)szSubstitution.updateN)�__name__�
__module__�__qualname__rr
rrrrrr	rs
rccs(�|V|��D]	}t|�EdHqdSr)�__subclasses__�_recursive_subclasses)�cls�subclsrrr	r0s
��rc@seZdZdd�ZdS)�_ArtistKwdocLoaderc
s�|�d�s	t|��|dtd���ddlm}m}z�fdd�t|�D�\}Wnty9}zt|�|�d}~ww|�|||��S)Nz:kwdocr)�Artist�kwdoccsg|]	}|j�kr|�qSr)r)�.0r��namerr	�
<listcomp>=s
�z2_ArtistKwdocLoader.__missing__.<locals>.<listcomp>)	�endswith�KeyError�len�matplotlib.artistrrr�
ValueError�
setdefault)r�keyrrr�errr	�__missing__7s

��z_ArtistKwdocLoader.__missing__N)rrrr(rrrr	r6srcs(eZdZdZdd�Z�fdd�Z�ZS)�_ArtistPropertiesSubstitutiona�
    A `.Substitution` with two additional features:

    - Substitutions of the form ``%(classname:kwdoc)s`` (ending with the
      literal ":kwdoc" suffix) trigger lookup of an Artist subclass with the
      given *classname*, and are substituted with the `.kwdoc` of that class.
    - Decorating a class triggers substitution both on the class docstring and
      on the class' ``__init__`` docstring (which is a commonly required
      pattern for Artist subclasses).
    cCst�|_dSr)rr)rrrr	r
Psz&_ArtistPropertiesSubstitution.__init__cs0t��|�t|t�r|jtjkr||j�|Sr)�superr�
isinstance�typer
�object)r�obj��	__class__rr	rSs
z&_ArtistPropertiesSubstitution.__call__)rrrrr
r�
__classcell__rrr/r	r)Dsr)cs�fdd�}|S)z;Copy a docstring from another source function (if present).cs�jr�j|_|Sr)r)�target��sourcerr	�do_copy\szcopy.<locals>.do_copyr)r4r5rr3r	�copyZsr6)	r
rr�dictrr)r6�dedent_interpd�interpdrrrr	�<module>s,

Youez - 2016 - github.com/yon3zu
LinuXploit