mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49: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):
|
if hasattr(obj, methodname):
|
||||||
obj = getattr(obj, methodname)
|
obj = getattr(obj, methodname)
|
||||||
if hasattr(obj, '__doc__'):
|
if hasattr(obj, '__doc__'):
|
||||||
irc.reply(msg, obj.__doc__)
|
irc.reply(msg, normalize(obj.__doc__))
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, '%s has no documentation' % funcname)
|
irc.reply(msg, '%s has no documentation' % funcname)
|
||||||
else:
|
else:
|
||||||
|
@ -49,6 +49,7 @@ class PythonTestCase(PluginTestCase, PluginDocumentation):
|
|||||||
self.assertNotError('pydoc fnmatch.fnmatch')
|
self.assertNotError('pydoc fnmatch.fnmatch')
|
||||||
self.assertNotError('pydoc socket.socket')
|
self.assertNotError('pydoc socket.socket')
|
||||||
self.assertNotError('pydoc logging.Logger')
|
self.assertNotError('pydoc logging.Logger')
|
||||||
|
self.assertNotRegexp('pydoc str.replace', r"^'")
|
||||||
|
|
||||||
def testZen(self):
|
def testZen(self):
|
||||||
self.assertNotError('zen')
|
self.assertNotError('zen')
|
||||||
|
Loading…
Reference in New Issue
Block a user