mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed pydoc command to allow getting docstrings of objects in __builtins__.
This commit is contained in:
parent
3f3d26d635
commit
99cb3579a6
@ -441,7 +441,7 @@ class FunCommands(callbacks.Privmsg):
|
||||
if '.' in funcname:
|
||||
parts = funcname.split('.')
|
||||
module = '.'.join(parts[:-1])
|
||||
if module not in sys.modules:
|
||||
if module not in __builtins__ and module not in sys.modules:
|
||||
path = os.path.dirname(os.__file__)
|
||||
for name in parts[:-1]:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user