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


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