mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Forgot to normalize in cases of type.method.
This commit is contained in:
parent
0da50a6496
commit
26d41dac6e
@ -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:
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user