]> granicus.if.org Git - python/commitdiff
fix problems found by pychecker
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 29 Jun 2003 04:16:28 +0000 (04:16 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 29 Jun 2003 04:16:28 +0000 (04:16 +0000)
Lib/SimpleXMLRPCServer.py

index fd8be18e8b3da60749460166861e5e9d54d3ead5..600aa451984ed6268f242b4fb856f0cd73c645d9 100644 (file)
@@ -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.