def put(self, url, headers, **kwargs): data = kwargs.get('data') if 'data' in kwargs: del kwargs['data'] response = HTTP.put_with_timeout(url, data, headers=headers, **kwargs) return response
def put(self, url, headers, **kwargs): data = kwargs.get('data') if 'data' in kwargs: del kwargs['data'] # This might take a very long time -- disable the normal # timeout. kwargs['timeout'] = None response = HTTP.put_with_timeout(url, data, headers=headers, **kwargs) return response
def put(self, url, headers, **kwargs): data = kwargs.get('data') if 'data' in kwargs: del kwargs['data'] # This might take a very long time -- disable the normal # timeout. kwargs['timeout'] = None response = HTTP.put_with_timeout( url, data, headers=headers, **kwargs ) return response