SF.net SVN: fclient: [481] trunk/fcp2/src/fcp2/iohandler.py
Status: Pre-Alpha
Brought to you by:
jurner
|
From: <jU...@us...> - 2008-07-02 07:05:09
|
Revision: 481
http://fclient.svn.sourceforge.net/fclient/?rev=481&view=rev
Author: jUrner
Date: 2008-07-02 00:05:11 -0700 (Wed, 02 Jul 2008)
Log Message:
-----------
fixed broken docstrings
Modified Paths:
--------------
trunk/fcp2/src/fcp2/iohandler.py
Modified: trunk/fcp2/src/fcp2/iohandler.py
===================================================================
--- trunk/fcp2/src/fcp2/iohandler.py 2008-07-02 07:05:02 UTC (rev 480)
+++ trunk/fcp2/src/fcp2/iohandler.py 2008-07-02 07:05:11 UTC (rev 481)
@@ -48,7 +48,7 @@
@param kwargs: any additional keyword arguments passed to L{IOHandler.connect}
@return: always None
- @raise L{consts.IOConnectFailedError}: in case something goes wrong
+ @raise L{consts.ErrorIOConnectFailed}: in case something goes wrong
"""
raise consts.ErrorIOConnectFailed('Failed', consts.ConstLogger.IO.error)
@@ -56,8 +56,8 @@
"""Should read n bytes from the device
@return: always None
- @raise L{consts.IOBrokenError}: in case something goes wrong
- @raise L{consts.IOTimeoutError}: if the read operation times out
+ @raise L{consts.ErrorIOBroken}: in case something goes wrong
+ @raise L{consts.ErrorIOTimeout}: if the read operation times out
"""
raise consts.ErrorIOBroken('Broken', consts.ConstLogger.IO.error)
@@ -65,7 +65,7 @@
"""Should write bytes to the device
@return: always None
- @raise L{consts.IOBrokenError}: in case something goes wrong
+ @raise L{consts.ErrorIOBroken}: in case something goes wrong
"""
raise consts.ErrorIOBroken('Broken', consts.ConstLogger.IO.error)
@@ -73,7 +73,7 @@
"""Should close the io device
@return: always None
- @raise L{consts.IOClosedError}: if the device is already closed
+ @raise L{consts.ErrorIOClosed}: if the device is already closed
"""
raise consts.ErrorIOClosed('Closed', consts.ConstLogger.IO.error)
@@ -265,9 +265,9 @@
@return: (Message) next message from the socket
- @raise IOBrokenError: (L{consts.IOBrokenError}) if the io breaks unexpectedly
- @raise IOTimeoutError: (L{consts.IOTimeoutError}) if no message is in the io
- @raise MessageParseError: (L{consts.IMessageParseError}) if the message is invalid
+ @raise IOBrokenError: (L{consts.ErrorIOBroken}) if the io breaks unexpectedly
+ @raise IOTimeoutError: (L{consts.ErrorIOTimeout}) if no message is in the io
+ @raise MessageParseError: (L{consts.ErrorMessageParse}) if the message is invalid
@note: if something goes wrong the according exception is raised
"""
@@ -341,7 +341,7 @@
"""Sends a message to freenet
@param msg: (Message) message to send
@return: Message
- @raise L{consts.IOBrokenError}: if the connection to the io dies unexpectedly
+ @raise L{consts.ErrorIOBroken}: if the connection to the io dies unexpectedly
"""
consts.ConstLogger.IOHandler.debug(consts.ConstLogMessages.Sending + msg.pprint())
self.io.write(msg.toString())
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|