Fixed bug in formatting of pydoc.

This commit is contained in:
Jeremy Fincher 2003-11-13 17:56:51 +00:00
parent 02b2eddd45
commit d496328e81
2 changed files with 2 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp, plugins.Configurable):
Returns the __doc__ string for a given Python function.
"""
def normalize(s):
return utils.normalizeWhitespace(s.replace('\n\n', '.'))
return utils.normalizeWhitespace(s.replace('\n\n', '. '))
def getModule(name, path=pythonPath):
if name in sys.modules:
return sys.modules[name]

View File

@ -52,6 +52,7 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
self.assertNotError('pydoc logging.Logger')
self.assertNotRegexp('pydoc str.replace', r"^'")
self.assertNotError('pydoc os.path.expanduser')
self.assertNotRegexp('pydoc math.hypot', r'\)\.R')
def testZen(self):
self.assertNotError('zen')