diff options
author | Tim Burke <tim.burke@gmail.com> | 2019-09-04 11:21:04 -0700 |
---|---|---|
committer | Tim Burke <tim.burke@gmail.com> | 2019-10-23 13:45:42 -0700 |
commit | dad99faffc80b66aea65149fb6d2e97db704b407 (patch) | |
tree | 1d201246d00d4d9c86bd817380e2cec6da0753d0 | |
parent | 20be6f94478f50cc3a162b318f616f0c6acdbd10 (diff) | |
download | python-swiftclient-dad99faffc80b66aea65149fb6d2e97db704b407.tar.gz |
docs: Fix warning treated as error
Change-Id: I669533334419e94ca925e859f2b0d5d2afe9f7f1
(cherry picked from commit a0f0aedb41ba790266cca678fc3bd91696888835)
-rw-r--r-- | swiftclient/multithreading.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/swiftclient/multithreading.py b/swiftclient/multithreading.py index fcf0ed9..f128790 100644 --- a/swiftclient/multithreading.py +++ b/swiftclient/multithreading.py @@ -168,6 +168,12 @@ class ConnectionThreadPoolExecutor(ThreadPoolExecutor): We will only create as many connections as are required concurrently. """ def __init__(self, create_connection, max_workers): + """ + Initializes a new ThreadPoolExecutor instance. + + :param create_connection: callable to use to create new connections + :param max_workers: the maximum number of threads that can be used + """ self._connections = PriorityQueue() self._create_connection = create_connection for p in range(0, max_workers): |