summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-04-21 21:09:48 +0300
committerSerhiy Storchaka <storchaka@gmail.com>2015-04-21 21:09:48 +0300
commitccca463752b824306da0ac705b16c31e33ba6fd5 (patch)
tree2100c49eb23c959985fcb1c1433f17ce652051a6 /Lib/pydoc.py
parentacfffafc2328492d4ae9f374fafc4693efc37a15 (diff)
downloadcpython-ccca463752b824306da0ac705b16c31e33ba6fd5.tar.gz
Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
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: