summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-09 21:47:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-09 21:47:39 (GMT)
commitbb08066053c51de274208eea645a0d9a470c87f9 (patch)
tree91d2cc9c41d25bccff14c1344a61b06f610a357d /Lib/dos-8x3
parentc6a681a57d61ded92c53ad2b58e53dfcd177ecf7 (diff)
downloadcpython-bb08066053c51de274208eea645a0d9a470c87f9.zip
cpython-bb08066053c51de274208eea645a0d9a470c87f9.tar.gz
cpython-bb08066053c51de274208eea645a0d9a470c87f9.tar.bz2
The usual
Diffstat (limited to 'Lib/dos-8x3')
-rwxr-xr-xLib/dos-8x3/queue.py7
-rwxr-xr-xLib/dos-8x3/socketse.py2
2 files changed, 8 insertions, 1 deletions
diff --git a/Lib/dos-8x3/queue.py b/Lib/dos-8x3/queue.py
index 6710153..843b9dc 100755
--- a/Lib/dos-8x3/queue.py
+++ b/Lib/dos-8x3/queue.py
@@ -44,7 +44,10 @@ class Queue:
return n
def put(self, item):
- """Put an item into the queue."""
+ """Put an item into the queue.
+
+ If the queue is full, block until a free slot is avaiable.
+ """
self.fsema.acquire_lock()
self.mutex.acquire_lock()
was_empty = self._empty()
@@ -57,6 +60,7 @@ class Queue:
def get(self):
"""Gets and returns an item from the queue.
+
This method blocks if necessary until an item is available.
"""
self.esema.acquire_lock()
@@ -74,6 +78,7 @@ class Queue:
# raise Empty if the queue is empty or temporarily unavailable
def get_nowait(self):
"""Gets and returns an item from the queue.
+
Only gets an item if one is immediately available, Otherwise
this raises the Empty exception if the queue is empty or
temporarily unavailable.
diff --git a/Lib/dos-8x3/socketse.py b/Lib/dos-8x3/socketse.py
index 64a86d1..cf8a365 100755
--- a/Lib/dos-8x3/socketse.py
+++ b/Lib/dos-8x3/socketse.py
@@ -396,6 +396,8 @@ class StreamRequestHandler(BaseRequestHandler):
def finish(self):
self.wfile.flush()
+ self.wfile.close()
+ self.rfile.close()
class DatagramRequestHandler(BaseRequestHandler):