From b6076fb13c6bf97f4fae76da478a26e0f4f24879 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 21 Apr 2015 21:09:48 +0300 Subject: Issue #23008: Fixed resolving attributes with boolean value is False in pydoc. --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/pydoc.py') 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: -- cgit v1.2.1