def abort_request(self, request):
        """Called to abort request on timeout"""
        self.timedout = True
        try:
            request.cancel()
        except error.AlreadyCancelled:
            return
def abort_request ( self , request ) : self . timedout = True try : request . cancel ( ) except error . AlreadyCancelled : return
Called to abort request on timeout