parameters: (self, response, request)
docstring: Extract cookies from response, where allowable given the request.
docstring_summary: Extract cookies from response, where allowable given the request.
docstring_tokens: Extract cookies from response where allowable given the request .
function: def extract_cookies(self, response, request):
          """Extract cookies from response, where allowable given the request."""
          _debug("extract_cookies: %s", response.info())
          self._cookies_lock.acquire()
          try:
              for cookie in self.make_cookies(response, request):
                  if self._policy.set_ok(cookie, request):
                      _debug(" setting cookie: %s", cookie)
                      self.set_cookie(cookie)
          finally:
              self._cookies_lock.release()
function_tokens: def extract_cookies ( self , response , request ) : _debug ( "extract_cookies: %s" , response . info ( ) ) self . _cookies_lock . acquire ( ) try : for cookie in self . make_cookies ( response , request ) : if self . _policy . set_ok ( cookie , request ) : _debug ( " setting cookie: %s" , cookie ) self . set_cookie ( cookie ) finally : self . _cookies_lock . release ( )