Forgot to normalize in cases of type.method.

This commit is contained in:
Jeremy Fincher 2003-10-21 03:22:29 +00:00
parent 0da50a6496
commit 26d41dac6e
2 changed files with 2 additions and 1 deletions

View File

@ -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:

View File

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