From f715366f23f47832a4b9914c54d5a63b19f17eba Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Mon, 7 Feb 2005 14:16:21 +0000 Subject: Reduce the usage of the types module. --- Lib/DocXMLRPCServer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/DocXMLRPCServer.py') diff --git a/Lib/DocXMLRPCServer.py b/Lib/DocXMLRPCServer.py index 20958b26ef6..259fb18b863 100644 --- a/Lib/DocXMLRPCServer.py +++ b/Lib/DocXMLRPCServer.py @@ -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: -- cgit v1.2.3