summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>2018-12-31 05:14:47 (GMT)
committerNick Coghlan <ncoghlan@gmail.com>2018-12-31 05:14:47 (GMT)
commitb539cef31c060c7eecc331d25a23b80ded0baf08 (patch)
tree9fed434820ac61d691b3f385a7aeebb897964d73 /Lib/pydoc.py
parent1d300ce1d8238136595c8fea76266a4755cd73a2 (diff)
downloadcpython-b539cef31c060c7eecc331d25a23b80ded0baf08.zip
cpython-b539cef31c060c7eecc331d25a23b80ded0baf08.tar.gz
cpython-b539cef31c060c7eecc331d25a23b80ded0baf08.tar.bz2
bpo-35614: Fix pydoc help() on metaclasses (#11357)
Diffstat (limited to 'Lib/pydoc.py')
-rw-r--r--Lib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 1d84b84..59f6e39 100644
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1255,7 +1255,7 @@ location listed above.
# List the built-in subclasses, if any:
subclasses = sorted(
- (str(cls.__name__) for cls in object.__subclasses__()
+ (str(cls.__name__) for cls in type.__subclasses__(object)
if not cls.__name__.startswith("_") and cls.__module__ == "builtins"),
key=str.lower
)