Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def set_proxy_pool(self, pool=None):
"""Construct a proxy pool
By default no proxy is used.
Args:
pool (ProxyPool, optional): a :obj:`ProxyPool` object
"""
self.proxy_pool = ProxyPool() if pool is None else pool