mirror of https://github.com/Mikaela/Limnoria.git
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:
|
if '.' in funcname:
|
||||||
parts = funcname.split('.')
|
parts = funcname.split('.')
|
||||||
module = '.'.join(parts[:-1])
|
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__)
|
path = os.path.dirname(os.__file__)
|
||||||
for name in parts[:-1]:
|
for name in parts[:-1]:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue