403Webshell
Server IP : 185.208.173.17  /  Your IP : 87.236.161.98
Web Server : Microsoft-IIS/10.0
System : Windows NT SRV8576125506 10.0 build 26100 (Windows Server 2016) AMD64
User : IUSR ( 0)
PHP Version : 7.4.13
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files/Cloudbase Solutions/Cloudbase-Init/Python/Lib/site-packages/pyreadline3/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files/Cloudbase Solutions/Cloudbase-Init/Python/Lib/site-packages/pyreadline3/get_doc.py
from __future__ import absolute_import, print_function, unicode_literals

import sys
import textwrap

from .py3k_compat import is_callable

rlmain = sys.modules["readline"]
rl = rlmain.rl


def get_doc(rl_):
    methods = [
        (x, getattr(rl_, x))
        for x in dir(rl_) if is_callable(getattr(rl_, x))
    ]
    return [(x, m.__doc__)for x, m in methods if m.__doc__]


def get_rest(rl_):
    q = get_doc(rl_)
    out = []
    for funcname, doc in q:
        out.append(funcname)
        out.append("\n".join(textwrap.wrap(doc, 80, initial_indent="   ")))
        out.append("")
    return out

Youez - 2016 - github.com/yon3zu
LinuXploit