403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.117
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/lib/python3/dist-packages/matplotlib/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/matplotlib/__pycache__/_docstring.cpython-312.pyc
�

G8�c���p�ddlZddlmZGd�d�ZGd�de�ZGd�d	e�Zd
�Ze�xZZ	y)�N�)�_apic�"�eZdZdZd�Zd�Zd�Zy)�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"
    c�8�|r
|rtd��|xs||_y)Nz+Only positional or keyword args are allowed)�	TypeError�params��self�args�kwargss   �7/usr/lib/python3/dist-packages/matplotlib/_docstring.py�__init__zSubstitution.__init__!s���F��I�J�J��n�f���c��|jr1tj|j�|jz|_|S�N)�__doc__�inspect�cleandocr	)r�funcs  r�__call__zSubstitution.__call__&s-���<�<�"�+�+�D�L�L�9�D�K�K�G�D�L��rc�<�|jj|i|��y)zW
        Update ``self.params`` (which must be a dict) with the supplied args.
        N)r	�updater
s   rrzSubstitution.update+s��	������D�+�F�+rN)�__name__�
__module__�__qualname__rrrr�rrrrs���4%�
�
,rrc��eZdZd�Zy)�_ArtistKwdocLoaderc�F�|jd�st|��|dtd�}ddlm}m}	t
j|�D�cgc]}|j|k(r|��c}\}|j|||��Scc}w#t$r}t|�|�d}~wwxYw)Nz:kwdocr)�Artist�kwdoc)�endswith�KeyError�len�matplotlib.artistr!r"r�recursive_subclassesr�
ValueError�
setdefault)r�key�namer!r"�cls�es       r�__missing__z_ArtistKwdocLoader.__missing__3s����|�|�H�%��3�-���?�S��]�N�#��3�	'�#'�#<�#<�V�#D�-�C��|�|�t�+��-�D�C����s�E�#�J�/�/��	-���	'��3�-�Q�&��	'�s)�B�B�$B�B�	B �B�B N)rrrr.rrrrr2s��
0rrc�(��eZdZdZd�Z�fd�Z�xZS)�_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).
    c�"�t�|_yr)rr	)rs rrz&_ArtistPropertiesSubstitution.__init__Ls��(�*��rc���t�|�|�t|t�r/|jt
jk7r||j�|Sr)�superr�
isinstance�typer�object)r�obj�	__class__s  �rrz&_ArtistPropertiesSubstitution.__call__Os:���
������c�4� �S�\�\�V�_�_�%D�������
r)rrrrrr�
__classcell__)r8s@rr0r0@s���	�+��rr0c����fd�}|S)z;Copy a docstring from another source function (if present).c�B���jr�j|_|Sr)r)�target�sources �r�do_copyzcopy.<locals>.do_copyXs����>�>�#�^�^�F�N��
rr)r=r>s` r�copyr?Vs�����Nr)
r�rr�dictrr0r?�dedent_interpd�interpdrrr�<module>rDsB����),�),�X0��0��L��,�9�:�:��r

Youez - 2016 - github.com/yon3zu
LinuXploit