Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.

This commit is contained in:
Serhiy Storchaka 2015-04-21 21:11:13 +03:00
commit f5e8540e1b
3 changed files with 11 additions and 1 deletions

View file

@ -1588,7 +1588,7 @@ def resolve(thing, forceload=0):
"""Given an object or a path to an object, get the object and its name."""
if isinstance(thing, str):
object = locate(thing, forceload)
if not object:
if object is None:
raise ImportError('''\
No Python documentation found for %r.
Use help() to get the interactive help utility.