Skip to content
This repository has been archived by the owner on Dec 17, 2022. It is now read-only.

Commit

Permalink
Suppress pylint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
impredicative committed May 8, 2021
1 parent 47ee0e1 commit 03898e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bitlyshortener/shortener.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ def _init_executor(self) -> None:
log.debug("Max number of worker threads is %s.", self._max_workers)
self._thread_local = threading.local()
self._init_requests_session() # For conditional non-parallel execution.
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=self._max_workers, thread_name_prefix="Requester", initializer=self._init_requests_session)
self._executor = concurrent.futures.ThreadPoolExecutor( # pylint: disable=consider-using-with
max_workers=self._max_workers, thread_name_prefix="Requester", initializer=self._init_requests_session
)
log.debug("Initialized thread pool executor.")

@staticmethod
Expand Down

0 comments on commit 03898e9

Please sign in to comment.