Commit b7863129 authored by Martijn Pieters's avatar Martijn Pieters

Add missing import and change exception raising style.

parent 608488de
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
import struct import struct
import time import time
import socket
from ZEO.StorageServer import StorageServer, log from ZEO.StorageServer import StorageServer, log
from ZEO.zrpc.server import ManagedServerConnection from ZEO.zrpc.server import ManagedServerConnection
...@@ -59,7 +60,7 @@ class DebugManagedServerConnection(ManagedServerConnection): ...@@ -59,7 +60,7 @@ class DebugManagedServerConnection(ManagedServerConnection):
self.handle_close() self.handle_close()
return '' return ''
else: else:
raise socket.error, why raise socket.error(why)
class DebugServer(StorageServer): class DebugServer(StorageServer):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment