BIND 10 trac2617, updated. 677e990f61d47065da92899bd3c82115cd977c8c [2617] editorial cleanups for MsgQCloseOnReceive pydoc
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jan 31 19:00:33 UTC 2013
The branch, trac2617 has been updated
via 677e990f61d47065da92899bd3c82115cd977c8c (commit)
from 878c361337c79e35816bb7df20595b8a5faa3491 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 677e990f61d47065da92899bd3c82115cd977c8c
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Thu Jan 31 11:00:09 2013 -0800
[2617] editorial cleanups for MsgQCloseOnReceive pydoc
-----------------------------------------------------------------------
Summary of changes:
src/bin/msgq/msgq.py.in | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/msgq/msgq.py.in b/src/bin/msgq/msgq.py.in
index 347bf74..e8db466 100755
--- a/src/bin/msgq/msgq.py.in
+++ b/src/bin/msgq/msgq.py.in
@@ -71,18 +71,19 @@ SPECFILE_LOCATION = SPECFILE_PATH + "/msgq.spec"
class MsgQReceiveError(Exception): pass
class MsgQCloseOnReceive(Exception):
- '''Exception raised when reading data from a socket results in "shutdown.
+ '''Exception raised when reading data from a socket results in 'shutdown'.
- This can be either getting 0-length data or via ECONNRESET socket.error
- exception. This class holds whether it happens in the middle of reading
- (i.e. after reading some) via partial_read parameter, which is set to True
- if and only if so. This will be used by an upper layer cathing the
- exception to distinguish severity of the event.
+ This happens when msgq received 0-length data. This class holds whether
+ it happens in the middle of reading (i.e. after reading some) via
+ partial_read parameter, which is set to True if and only if so.
+ This will be used by an upper layer catching the exception to distinguish
+ the severity of the event.
"'''
def __init__(self, reason, partial_read):
self.partial_read = partial_read
self.__reason = reason
+
def __str__(self):
return self.__reason
More information about the bind10-changes
mailing list