[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/DebugServer.py Add missing import and change exception raising style.

Martijn Pieters mj at zopatista.com
Wed Aug 31 16:10:30 EDT 2005


Log message for revision 38212:
  Add missing import and change exception raising style.
  

Changed:
  U   ZODB/trunk/src/ZEO/DebugServer.py

-=-
Modified: ZODB/trunk/src/ZEO/DebugServer.py
===================================================================
--- ZODB/trunk/src/ZEO/DebugServer.py	2005-08-31 19:20:38 UTC (rev 38211)
+++ ZODB/trunk/src/ZEO/DebugServer.py	2005-08-31 20:10:30 UTC (rev 38212)
@@ -15,6 +15,7 @@
 
 import struct
 import time
+import socket
 
 from ZEO.StorageServer import StorageServer, log
 from ZEO.zrpc.server import ManagedServerConnection
@@ -59,7 +60,7 @@
                 self.handle_close()
                 return ''
             else:
-                raise socket.error, why
+                raise socket.error(why)
 
 class DebugServer(StorageServer):
 



More information about the Zodb-checkins mailing list