mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
fix problems found by pychecker
This commit is contained in:
parent
643bcecad0
commit
732911fd1e
1 changed files with 3 additions and 2 deletions
|
@ -305,7 +305,8 @@ class SimpleXMLRPCDispatcher:
|
||||||
if method is None:
|
if method is None:
|
||||||
return ""
|
return ""
|
||||||
else:
|
else:
|
||||||
return pydoc.getdoc(method)
|
import pydoc
|
||||||
|
return pydoc.getdoc(method)
|
||||||
|
|
||||||
def system_multicall(self, call_list):
|
def system_multicall(self, call_list):
|
||||||
"""system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => \
|
"""system.multicall([{'methodName': 'add', 'params': [2, 2]}, ...]) => \
|
||||||
|
@ -485,7 +486,7 @@ class CGIXMLRPCRequestHandler(SimpleXMLRPCDispatcher):
|
||||||
print 'Content-Type: text/html'
|
print 'Content-Type: text/html'
|
||||||
print 'Content-Length: %d' % len(response)
|
print 'Content-Length: %d' % len(response)
|
||||||
print
|
print
|
||||||
sys.stdout.write(reponse)
|
sys.stdout.write(response)
|
||||||
|
|
||||||
def handle_request(self, request_text = None):
|
def handle_request(self, request_text = None):
|
||||||
"""Handle a single XML-RPC request passed through a CGI post method.
|
"""Handle a single XML-RPC request passed through a CGI post method.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue