mirror of
https://github.com/python/cpython.git
synced 2025-08-28 20:56:54 +00:00
Reduce the usage of the types module.
This commit is contained in:
parent
a164574937
commit
f715366f23
8 changed files with 64 additions and 68 deletions
|
@ -12,7 +12,6 @@ modules.
|
|||
|
||||
import pydoc
|
||||
import inspect
|
||||
import types
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
@ -92,7 +91,7 @@ class ServerHTMLDoc(pydoc.HTMLDoc):
|
|||
else:
|
||||
argspec = '(...)'
|
||||
|
||||
if isinstance(object, types.TupleType):
|
||||
if isinstance(object, tuple):
|
||||
argspec = object[0] or argspec
|
||||
docstring = object[1] or ""
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue