Reduce the usage of the types module.

This commit is contained in:
Raymond Hettinger 2005-02-07 14:16:21 +00:00
parent a164574937
commit f715366f23
8 changed files with 64 additions and 68 deletions

View file

@ -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: