diff options
| author | Noémi Ványi <kvch@users.noreply.github.com> | 2020-09-12 14:51:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-12 14:51:35 +0200 |
| commit | 2370234d0978f59dd62efa4a4931e41ad31444d1 (patch) | |
| tree | d3863e22b3d34092484146ce0bdc6e0ca8d36216 /searx/poolrequests.py | |
| parent | 272158944bf13503e2597018fc60a00baddec660 (diff) | |
| parent | bdac99d4f0349a71d7ecb9a4c61687356afedd6b (diff) | |
Merge pull request #2137 from dalf/drop-python-2
Drop Python 2
Diffstat (limited to 'searx/poolrequests.py')
| -rw-r--r-- | searx/poolrequests.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/searx/poolrequests.py b/searx/poolrequests.py index 9f0ee8736..51b6219c3 100644 --- a/searx/poolrequests.py +++ b/searx/poolrequests.py @@ -20,7 +20,7 @@ class HTTPAdapterWithConnParams(requests.adapters.HTTPAdapter): self.config = {} self.proxy_manager = {} - super(requests.adapters.HTTPAdapter, self).__init__() + super().__init__() self._pool_connections = pool_connections self._pool_maxsize = pool_maxsize @@ -60,7 +60,7 @@ else: class SessionSinglePool(requests.Session): def __init__(self): - super(SessionSinglePool, self).__init__() + super().__init__() # reuse the same adapters with RLock(): @@ -71,7 +71,7 @@ class SessionSinglePool(requests.Session): def close(self): """Call super, but clear adapters since there are managed globaly""" self.adapters.clear() - super(SessionSinglePool, self).close() + super().close() def set_timeout_for_thread(timeout, start_time=None): |