diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-21 18:11:13 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-21 18:11:13 (GMT) |
commit | f5e8540e1bda85f041fc7ce592e3079c16f18a1b (patch) | |
tree | 9130a4249b59971b0e0210d2e8f326b3792a8646 /Lib/pydoc.py | |
parent | 273a720f876e754013e17fab0ab9b599284239f7 (diff) | |
parent | b6076fb13c6bf97f4fae76da478a26e0f4f24879 (diff) | |
download | cpython-f5e8540e1bda85f041fc7ce592e3079c16f18a1b.zip cpython-f5e8540e1bda85f041fc7ce592e3079c16f18a1b.tar.gz cpython-f5e8540e1bda85f041fc7ce592e3079c16f18a1b.tar.bz2 |
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 264e407..306dcaf 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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. |