@@ -120,7 +120,7 @@ def put(self, item, block=True, timeout=None):
120120
121121 If optional args 'block' is true and 'timeout' is None (the default),
122122 block if necessary until a free slot is available. If 'timeout' is
123- a positive number, it blocks at most 'timeout' seconds and raises
123+ a non-negative number, it blocks at most 'timeout' seconds and raises
124124 the Full exception if no free slot was available within that time.
125125 Otherwise ('block' is false), put an item on the queue if a free slot
126126 is immediately available, else raise the Full exception ('timeout'
@@ -135,7 +135,7 @@ def put(self, item, block=True, timeout=None):
135135 while self ._qsize () >= self .maxsize :
136136 self .not_full .wait ()
137137 elif timeout < 0 :
138- raise ValueError ("'timeout' must be a positive number" )
138+ raise ValueError ("'timeout' must be a non-negative number" )
139139 else :
140140 endtime = time () + timeout
141141 while self ._qsize () >= self .maxsize :
@@ -152,7 +152,7 @@ def get(self, block=True, timeout=None):
152152
153153 If optional args 'block' is true and 'timeout' is None (the default),
154154 block if necessary until an item is available. If 'timeout' is
155- a positive number, it blocks at most 'timeout' seconds and raises
155+ a non-negative number, it blocks at most 'timeout' seconds and raises
156156 the Empty exception if no item was available within that time.
157157 Otherwise ('block' is false), return an item if one is immediately
158158 available, else raise the Empty exception ('timeout' is ignored
@@ -166,7 +166,7 @@ def get(self, block=True, timeout=None):
166166 while not self ._qsize ():
167167 self .not_empty .wait ()
168168 elif timeout < 0 :
169- raise ValueError ("'timeout' must be a positive number" )
169+ raise ValueError ("'timeout' must be a non-negative number" )
170170 else :
171171 endtime = time () + timeout
172172 while not self ._qsize ():
0 commit comments