diff -r a5530207b003 Lib/pydoc.py --- a/Lib/pydoc.py Sat Apr 11 09:39:59 2015 -0700 +++ b/Lib/pydoc.py Sat Apr 11 21:14:07 2015 +0300 @@ -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.