diff Lib/Queue.py @ 16070:b5345e99596b legacy-trunk

added __all__ lists to a number of Python modules added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
author Skip Montanaro <skip@pobox.com>
date Sat, 20 Jan 2001 19:54:20 +0000
parents eef321b6e41c
children 79d533934ac1
line wrap: on
line diff
--- a/Lib/Queue.py	Sat Jan 20 19:12:54 2001 +0000
+++ b/Lib/Queue.py	Sat Jan 20 19:54:20 2001 +0000
@@ -1,5 +1,7 @@
 """A multi-producer, multi-consumer queue."""
 
+__all__ = ["Queue","Empty","Full"]
+
 class Empty(Exception):
     "Exception raised by Queue.get(block=0)/get_nowait()."
     pass