Commit 6e64e5fa authored by Denis Bilenko's avatar Denis Bilenko

ThreadPool: slightly change an error message

parent a298830d
......@@ -30,7 +30,7 @@ class ThreadPool(object):
if not isinstance(maxsize, integer_types):
raise TypeError('maxsize must be integer: %r' % (maxsize, ))
if maxsize < 0:
raise ValueError('maxsize cannot be negative: %r' % (maxsize, ))
raise ValueError('maxsize must not be negative: %r' % (maxsize, ))
difference = maxsize - self._maxsize
self._semaphore.counter += difference
self._maxsize = maxsize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment