mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
This commit is contained in:
parent
d73aca769f
commit
b6076fb13c
3 changed files with 11 additions and 1 deletions
|
@ -1590,7 +1590,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' % thing)
|
||||
return object, thing
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue