ó U!¶\c@sœddlmZddlmZddlmZddlmZdefd„ƒYZ de fd„ƒYZ d e fd „ƒYZ d e fd „ƒYZ d S(iÿÿÿÿ(tdocument_model_driven_method(tdocument_wait_method(tdocument_paginate_method(tDocumentStructuretLazyLoadedDocstringcBsVeZdZd„Zd„Zd„Zdd„Zd„ZeZd„Z d„Z RS( s0Used for lazily loading docstrings You can instantiate this class and assign it to a __doc__ value. The docstring will not be generated till accessed via __doc__ or help(). Note that all docstring classes **must** subclass from this class. It cannot be used directly as a docstring. cOs2tt|ƒjƒ||_||_d|_dS(s¥ The args and kwargs are the same as the underlying document generation function. These just get proxied to the underlying function. N(tsuperRt__init__t _gen_argst _gen_kwargstNonet _docstring(tselftargstkwargs((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRs  cOstt|ƒj|ƒS(N(RRt__new__(tclsR R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR&scOstdƒ‚dS(Nsq_write_docstring is not implemented. Please subclass from this class and provide your own _write_docstring method(tNotImplementedError(R R R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyt_write_docstring*sicCs,|jdkr|jƒn|jj|ƒS(s™Expands tabs to spaces So this is a big hack in order to get lazy loaded docstring work for the ``help()``. In the ``help()`` function, ``pydoc`` and ``inspect`` are used. At some point the ``inspect.cleandoc`` method is called. To clean the docs ``expandtabs`` is called and that is where we override the method to generate and return the docstrings. N(R R t _generatet expandtabs(R ttabsize((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR0s  cCs |jƒS(N(R(R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyt__str__>scCs(|jdkr!|jƒ|_n|jS(N(R R t_create_docstring(R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRDscCs>tdddƒ}|j||j|jŽ|jƒjdƒS(Nt docstringttargetthtmlsutf-8(RRRRtflush_structuretdecode(R tdocstring_structure((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRJs   ( t__name__t __module__t__doc__RRRRRt__repr__RR(((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRs     tClientMethodDocstringcBseZd„ZRS(cOst||ŽdS(N(R(R R R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRUs(RRR(((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR!TstWaiterDocstringcBseZd„ZRS(cOst||ŽdS(N(R(R R R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyRZs(RRR(((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR"YstPaginatorDocstringcBseZd„ZRS(cOst||ŽdS(N(R(R R R ((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR_s(RRR(((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyR#^sN( tbotocore.docs.methodRtbotocore.docs.waiterRtbotocore.docs.paginatorRtbotocore.docs.bcdoc.restdocRtstrRR!R"R#(((s;/tmp/pip-install-usGedi/botocore/botocore/docs/docstring.pyt sA