From 732911fd1e33244fcb7d946c3936dfbaff83980d Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Sun, 29 Jun 2003 04:16:28 +0000 Subject: fix problems found by pychecker --- Lib/SimpleXMLRPCServer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Lib/SimpleXMLRPCServer.py') diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index fd8be18e8b..600aa45198 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py @@ -305,7 +305,8 @@ class SimpleXMLRPCDispatcher: if method is None: return "" else: - return pydoc.getdoc(method) + import pydoc + return pydoc.getdoc(method) def system_multicall(self, call_list): """system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => \ @@ -485,7 +486,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher): print 'Content-Type: text/html' print 'Content-Length: %d' % len(response) print - sys.stdout.write(reponse) + sys.stdout.write(response) def handle_request(self, request_text = None): """Handle a single XML-RPC request passed through a CGI post method. -- cgit v1.2.1