Kaydet (Commit) a8e65755 authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.

üst 2c6ca8ad
...@@ -1540,7 +1540,7 @@ def resolve(thing, forceload=0): ...@@ -1540,7 +1540,7 @@ def resolve(thing, forceload=0):
"""Given an object or a path to an object, get the object and its name.""" """Given an object or a path to an object, get the object and its name."""
if isinstance(thing, str): if isinstance(thing, str):
object = locate(thing, forceload) object = locate(thing, forceload)
if not object: if object is None:
raise ImportError, 'no Python documentation found for %r' % thing raise ImportError, 'no Python documentation found for %r' % thing
return object, thing return object, thing
else: else:
......
...@@ -21,6 +21,8 @@ Core and Builtins ...@@ -21,6 +21,8 @@ Core and Builtins
Library Library
------- -------
- Issue #23008: Fixed resolving attributes with boolean value is False in pydoc.
- Issue #23842: os.major(), os.minor() and os.makedev() now support ints again. - Issue #23842: os.major(), os.minor() and os.makedev() now support ints again.
- Issue #23811: Add missing newline to the PyCompileError error message. - Issue #23811: Add missing newline to the PyCompileError error message.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment