Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def request(self, method, url, **kwargs):
if self._throttled:
self._throttle()
return super(ThrottledSession, self).request(method, url, **kwargs)