From d496328e8197eeaef5cc6c25d2834f00a9f32f58 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 13 Nov 2003 17:56:51 +0000 Subject: [PATCH] Fixed bug in formatting of pydoc. --- plugins/Python.py | 2 +- test/test_Python.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/Python.py b/plugins/Python.py index 5f237a4dd..4d08f5685 100644 --- a/plugins/Python.py +++ b/plugins/Python.py @@ -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] diff --git a/test/test_Python.py b/test/test_Python.py index 2fb4c48c9..f35796ea1 100644 --- a/test/test_Python.py +++ b/test/test_Python.py @@ -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')