KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache
System : Linux server112.speedpacket.com 3.10.0-962.3.2.lve1.5.36.el7.x86_64 #1 SMP Mon May 18 02:16:06 EDT 2020 x86_64
User : equistyl ( 1341)
PHP Version : 8.1.30
Disable Function : NONE
Directory :  /lib64/python2.7/site-packages/matplotlib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/matplotlib/docstring.pyo
�
r`]c@s�ddlmZddlmZddlZddlZdefd��YZdefd��YZd�Z	d	�Z
e�Zd
�Zd�Z
dS(i����(tprint_function(tcbookNtSubstitutioncBs8eZdZd�Zd�Zd�Zed��ZRS(s/
    A decorator to take a function's docstring and perform string
    substitution on it.

    This decorator should be robust even if func.__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|p	||_dS(N(tparams(tselftargstkwargs((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyt__init__"scCs |jo|j|j|_|S(N(t__doc__R(Rtfunc((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyt__call__&scOs|jj||�dS(s=Assume self.params is a dict and update it with supplied argsN(Rtupdate(RRR((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyR*scCs|�}||_|S(s(
        In the case where the params is a mutable sequence (list or dictionary)
        and it may change before this class is called, one may explicitly use
        a reference to the params rather than using *args or **kwargs which will
        copy the values and not reference them.
        (R(tclsRtresult((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pytfrom_params.s		(t__name__t
__module__RRR
RtclassmethodR(((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyRs
			tAppendercBs#eZdZdd�Zd�ZRS(sf
    A function decorator that will append an addendum to the docstring
    of the target function.

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

    Usage: construct a docstring.Appender with a string to be joined to
    the original docstring. An optional 'join' parameter may be supplied
    which will be used to join the docstring and addendum. e.g.

    add_copyright = Appender("Copyright (c) 2009", join='
')

    @add_copyright
    def my_dog(has='fleas'):
        "This docstring will have a copyright below"
        pass
    tcCs||_||_dS(N(taddendumtjoin(RRR((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyRMs	cCs1|j|jg}|jo'dj|�|_|S(NR(RRR(RR	tdocitems((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyR
Qs(RRRRR
(((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyR:scCs"|jotj|j�|_|S(sDedent a docstring (if present)(RRtdedent(R	((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyRVscs�fd�}|S(s:Copy a docstring from another source function (if present)cs�jr�j|_n|S(N(R(ttarget(tsource(s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pytdo_copy]s	((RR((Rs:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pytcopy[scCsAt|tj�r1tjddkr1|j}ntt|��S(sXA special case of the interpd that first performs a dedent on
    the incoming docstringii(t
isinstancettypest
MethodTypetsystversion_infotim_functinterpdR(R	((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pytdedent_interpdgs%cs
�fd�S(sOA decorator that will copy the docstring from the source and
    then dedent itcstt��|��S(N(RR(R(R(s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyt<lambda>us((R((Rs:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pytcopy_dedentns(t
__future__Rt
matplotlibRRRtobjectRRRRR"R#R%(((s:/usr/lib64/python2.7/site-packages/matplotlib/docstring.pyt<module>s4		
		

Anon7 - 2021