Python pydoc.splitdoc() Examples
The following are 8
code examples of pydoc.splitdoc().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
pydoc
, or try the search function
.
Example #1
Source File: test_pydoc.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def test_splitdoc_with_description(self): example_string = "I Am A Doc\n\n\nHere is my description" self.assertEqual(pydoc.splitdoc(example_string), ('I Am A Doc', '\nHere is my description'))
Example #2
Source File: test_pydoc.py From ironpython3 with Apache License 2.0 | 5 votes |
def test_splitdoc_with_description(self): example_string = "I Am A Doc\n\n\nHere is my description" self.assertEqual(pydoc.splitdoc(example_string), ('I Am A Doc', '\nHere is my description'))
Example #3
Source File: test_pydoc.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def test_splitdoc_with_description(self): example_string = "I Am A Doc\n\n\nHere is my description" self.assertEqual(pydoc.splitdoc(example_string), ('I Am A Doc', '\nHere is my description'))
Example #4
Source File: util.py From odoo13-x64 with GNU General Public License v3.0 | 5 votes |
def get_module_name(module): """Return the short description of the number.""" return pydoc.splitdoc(pydoc.getdoc(module))[0].strip('.')
Example #5
Source File: util.py From odoo13-x64 with GNU General Public License v3.0 | 5 votes |
def get_module_description(module): """Return a description of the number.""" doc = pydoc.splitdoc(pydoc.getdoc(module))[1] # remove the doctests return _strip_doctest_re.sub('', doc).strip()
Example #6
Source File: test_pydoc.py From android_universal with MIT License | 5 votes |
def test_splitdoc_with_description(self): example_string = "I Am A Doc\n\n\nHere is my description" self.assertEqual(pydoc.splitdoc(example_string), ('I Am A Doc', '\nHere is my description'))
Example #7
Source File: util.py From odoo12-x64 with GNU General Public License v3.0 | 5 votes |
def get_module_name(module): """Return the short description of the number.""" return pydoc.splitdoc(pydoc.getdoc(module))[0].strip('.')
Example #8
Source File: util.py From odoo12-x64 with GNU General Public License v3.0 | 5 votes |
def get_module_description(module): """Return a description of the number.""" doc = pydoc.splitdoc(pydoc.getdoc(module))[1] # remove the doctests return _strip_doctest_re.sub('', doc).strip()