summaryrefslogtreecommitdiff
path: root/docker/transport/basehttpadapter.py
blob: dfbb193b9a0123fbd251345dfc49883978a13336 (plain)
1
2
3
4
5
6
7
8
import requests.adapters


class BaseHTTPAdapter(requests.adapters.HTTPAdapter):
    def close(self):
        super().close()
        if hasattr(self, 'pools'):
            self.pools.clear()