Fixed pydoc command to allow getting docstrings of objects in __builtins__.

This commit is contained in:
Jeremy Fincher 2003-04-02 08:13:10 +00:00
parent 3f3d26d635
commit 99cb3579a6
1 changed files with 1 additions and 1 deletions

View File

@ -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: