diff options
author | Tim Peters <tim.peters@gmail.com> | 2006-06-01 13:41:46 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2006-06-01 13:41:46 (GMT) |
commit | 5535da030303879d0449901359081e02aee4e853 (patch) | |
tree | acba37952efd3c35795b1e7130f69b973a55d9c7 /Lib | |
parent | 35f6d36951766c8ca7a88642415e76a603751878 (diff) | |
download | cpython-5535da030303879d0449901359081e02aee4e853.zip cpython-5535da030303879d0449901359081e02aee4e853.tar.gz cpython-5535da030303879d0449901359081e02aee4e853.tar.bz2 |
Whitespace normalization.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/SimpleXMLRPCServer.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Lib/SimpleXMLRPCServer.py b/Lib/SimpleXMLRPCServer.py index 9d554d7..7a9f26f 100644 --- a/Lib/SimpleXMLRPCServer.py +++ b/Lib/SimpleXMLRPCServer.py @@ -445,7 +445,7 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): if not self.is_rpc_path_valid(): self.report_404() return - + try: # Get arguments by reading body of request. # We read this in chunks to avoid straining @@ -486,15 +486,15 @@ class SimpleXMLRPCRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): def report_404 (self): # Report a 404 error - self.send_response(404) - response = 'No such page' - self.send_header("Content-type", "text/plain") - self.send_header("Content-length", str(len(response))) - self.end_headers() - self.wfile.write(response) - # shut down the connection - self.wfile.flush() - self.connection.shutdown(1) + self.send_response(404) + response = 'No such page' + self.send_header("Content-type", "text/plain") + self.send_header("Content-length", str(len(response))) + self.end_headers() + self.wfile.write(response) + # shut down the connection + self.wfile.flush() + self.connection.shutdown(1) def log_request(self, code='-', size='-'): """Selectively log an accepted request.""" |