[Python-checkins] r46590 - python/trunk/Lib/SimpleXMLRPCServer.py

tim.peters python-checkins at python.org
Thu Jun 1 15:41:46 CEST 2006


Author: tim.peters
Date: Thu Jun 1 15:41:46 2006
New Revision: 46590
Modified:
 python/trunk/Lib/SimpleXMLRPCServer.py
Log:
Whitespace normalization.
Modified: python/trunk/Lib/SimpleXMLRPCServer.py
==============================================================================
--- python/trunk/Lib/SimpleXMLRPCServer.py	(original)
+++ python/trunk/Lib/SimpleXMLRPCServer.py	Thu Jun 1 15:41:46 2006
@@ -445,7 +445,7 @@
 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 @@
 
 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."""


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /