Python pydoc.plain() Examples
The following are 4
code examples of pydoc.plain().
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 _get_summary_line(o): text = pydoc.plain(pydoc.render_doc(o)) lines = text.split('\n') assert len(lines) >= 2 return lines[2] # these should include "self"
Example #2
Source File: test_pydoc.py From ironpython3 with Apache License 2.0 | 5 votes |
def _get_summary_line(o): text = pydoc.plain(pydoc.render_doc(o)) lines = text.split('\n') assert len(lines) >= 2 return lines[2] # these should include "self"
Example #3
Source File: test_pydoc.py From Project-New-Reign---Nemesis-Main with GNU General Public License v3.0 | 5 votes |
def _get_summary_line(o): text = pydoc.plain(pydoc.render_doc(o)) lines = text.split('\n') assert len(lines) >= 2 return lines[2] # these should include "self"
Example #4
Source File: test_pydoc.py From android_universal with MIT License | 5 votes |
def _get_summary_line(o): text = pydoc.plain(pydoc.render_doc(o)) lines = text.split('\n') assert len(lines) >= 2 return lines[2] # these should include "self"