diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-21 21:09:48 +0300 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2015-04-21 21:09:48 +0300 |
commit | ccca463752b824306da0ac705b16c31e33ba6fd5 (patch) | |
tree | 2100c49eb23c959985fcb1c1433f17ce652051a6 /Lib/pydoc.py | |
parent | acfffafc2328492d4ae9f374fafc4693efc37a15 (diff) | |
download | cpython-ccca463752b824306da0ac705b16c31e33ba6fd5.tar.gz |
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 faaa859535..0c7b60d98d 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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: |