Python pydoc.writedoc() Examples

The following are 6 code examples of pydoc.writedoc(). 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 ironpython2 with Apache License 2.0 6 votes vote down vote up
def test_htmlpage(self):
        # html.page does not choke on unicode
        with test.test_support.temp_cwd():
            with captured_stdout() as output:
                pydoc.writedoc(self.Q)
        self.assertEqual(output.getvalue(), 'wrote Q.html\n') 
Example #2
Source File: test_pydoc.py    From oss-ftp with MIT License 6 votes vote down vote up
def test_htmlpage(self):
        # html.page does not choke on unicode
        with test.test_support.temp_cwd():
            with captured_stdout() as output:
                pydoc.writedoc(self.Q)
        self.assertEqual(output.getvalue(), 'wrote Q.html\n') 
Example #3
Source File: bcut.py    From PyBioMed with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
def _GetHTMLDoc():
    """
    #################################################################
    Write HTML documentation for this module.
    #################################################################
    """
    import pydoc

    pydoc.writedoc("bcut")


######################################################################## 
Example #4
Source File: basak.py    From PyBioMed with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
def _GetHTMLDoc():
    """
    #################################################################
    Write HTML documentation for this module.
    #################################################################
    """
    import pydoc

    pydoc.writedoc("basak")


################################################################################ 
Example #5
Source File: test_pydoc.py    From gcblue with BSD 3-Clause "New" or "Revised" License 6 votes vote down vote up
def test_htmlpage(self):
        # html.page does not choke on unicode
        with test.test_support.temp_cwd():
            with captured_stdout() as output:
                pydoc.writedoc(self.Q)
        self.assertEqual(output.getvalue(), 'wrote Q.html\n') 
Example #6
Source File: topology.py    From PyBioMed with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def _GetHTMLDoc():
    """
    #################################################################
    Write HTML documentation for this module.
    #################################################################
    """
    import pydoc

    pydoc.writedoc("topology")


################################################################################
#####################################################################