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