Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 732911f

Browse files
committed
fix problems found by pychecker
1 parent 643bcec commit 732911f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lib/SimpleXMLRPCServer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ def system_methodHelp(self, method_name):
305305
if method is None:
306306
return ""
307307
else:
308-
return pydoc.getdoc(method)
308+
import pydoc
309+
return pydoc.getdoc(method)
309310

310311
def system_multicall(self, call_list):
311312
"""system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => \
@@ -485,7 +486,7 @@ def handle_get(self):
485486
print 'Content-Type: text/html'
486487
print 'Content-Length: %d' % len(response)
487488
print
488-
sys.stdout.write(reponse)
489+
sys.stdout.write(response)
489490

490491
def handle_request(self, request_text = None):
491492
"""Handle a single XML-RPC request passed through a CGI post method.

0 commit comments

Comments
 (0)