From 26d41dac6e02de8337adb2c4427751c382c3bd10 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 21 Oct 2003 03:22:29 +0000 Subject: [PATCH] Forgot to normalize in cases of type.method. --- 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 f1a5bc87d..9ef6e5d7b 100644 --- a/plugins/Python.py +++ b/plugins/Python.py @@ -103,7 +103,7 @@ class Python(callbacks.Privmsg): if hasattr(obj, methodname): obj = getattr(obj, methodname) if hasattr(obj, '__doc__'): - irc.reply(msg, obj.__doc__) + irc.reply(msg, normalize(obj.__doc__)) else: irc.reply(msg, '%s has no documentation' % funcname) else: diff --git a/test/test_Python.py b/test/test_Python.py index e1b0a9700..693137e4e 100644 --- a/test/test_Python.py +++ b/test/test_Python.py @@ -49,6 +49,7 @@ class PythonTestCase(PluginTestCase, PluginDocumentation): self.assertNotError('pydoc fnmatch.fnmatch') self.assertNotError('pydoc socket.socket') self.assertNotError('pydoc logging.Logger') + self.assertNotRegexp('pydoc str.replace', r"^'") def testZen(self): self.assertNotError('zen')