From 99cb3579a68fb7cd5707985b2586f1fb0a599333 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Wed, 2 Apr 2003 08:13:10 +0000 Subject: [PATCH] Fixed pydoc command to allow getting docstrings of objects in __builtins__. --- plugins/FunCommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/FunCommands.py b/plugins/FunCommands.py index 51ba3b140..2282f2751 100644 --- a/plugins/FunCommands.py +++ b/plugins/FunCommands.py @@ -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: