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')