mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed bug in formatting of pydoc.
This commit is contained in:
parent
02b2eddd45
commit
d496328e81
@ -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]
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user