Commit ff04bff1 authored by Jeremy Hylton's avatar Jeremy Hylton

cosmetic cleanup of exception raising -- 4 lines down to 1

parent fc5185e0
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Sized message async connections """Sized message async connections
""" """
__version__ = "$Revision: 1.9 $"[11:-2] __version__ = "$Revision: 1.10 $"[11:-2]
import asyncore, string, struct, zLOG, sys, Acquisition import asyncore, string, struct, zLOG, sys, Acquisition
from zLOG import LOG, TRACE, ERROR, INFO from zLOG import LOG, TRACE, ERROR, INFO
...@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher): ...@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher):
append=self.__append append=self.__append
if append is None: if append is None:
raise Disconnected, ( raise Disconnected("This action is temporarily unavailable.<p>")
"This action is temporarily unavailable."
"<p>"
)
append(pack(">i",len(message))+message) append(pack(">i",len(message))+message)
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
"""Sized message async connections """Sized message async connections
""" """
__version__ = "$Revision: 1.9 $"[11:-2] __version__ = "$Revision: 1.10 $"[11:-2]
import asyncore, string, struct, zLOG, sys, Acquisition import asyncore, string, struct, zLOG, sys, Acquisition
from zLOG import LOG, TRACE, ERROR, INFO from zLOG import LOG, TRACE, ERROR, INFO
...@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher): ...@@ -181,10 +181,7 @@ class SizedMessageAsyncConnection(Acquisition.Explicit, asyncore.dispatcher):
append=self.__append append=self.__append
if append is None: if append is None:
raise Disconnected, ( raise Disconnected("This action is temporarily unavailable.<p>")
"This action is temporarily unavailable."
"<p>"
)
append(pack(">i",len(message))+message) append(pack(">i",len(message))+message)
......
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