diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:16:28 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2003-06-29 04:16:28 (GMT) |
commit | 732911fd1e33244fcb7d946c3936dfbaff83980d (patch) | |
tree | 3e3688093bea990ae1fd6ec153ddb11e5eb19773 | |
parent | 643bcecad03004e83ecfc3560bf85ceb628280ab (diff) | |
download | cpython-732911fd1e33244fcb7d946c3936dfbaff83980d.zip cpython-732911fd1e33244fcb7d946c3936dfbaff83980d.tar.gz cpython-732911fd1e33244fcb7d946c3936dfbaff83980d.tar.bz2 |
fix problems found by pychecker
-rw-r--r-- | Lib/SimpleXMLRPCServer.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index fd8be18..600aa45 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. |