aboutsummaryrefslogtreecommitdiffstats
path: root/netlib/tcp.py
diff options
context:
space:
mode:
Diffstat (limited to 'netlib/tcp.py')
-rw-r--r--netlib/tcp.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/netlib/tcp.py b/netlib/tcp.py
index 56cc0dea..a79f3ac4 100644
--- a/netlib/tcp.py
+++ b/netlib/tcp.py
@@ -87,6 +87,9 @@ class _FileLike:
class Writer(_FileLike):
def flush(self):
+ """
+ May raise NetLibDisconnect
+ """
if hasattr(self.o, "flush"):
try:
self.o.flush()
@@ -94,6 +97,9 @@ class Writer(_FileLike):
raise NetLibDisconnect(str(v))
def write(self, v):
+ """
+ May raise NetLibDisconnect
+ """
if v:
try:
if hasattr(self.o, "sendall"):