def put_file(self, from_file, to_info, callback=DEFAULT_CALLBACK, **kwargs): with as_atomic(self, to_info) as tmp_file: super().put_file(from_file, tmp_file, callback=callback, **kwargs)
def upload_fobj(self, fobj, to_info, **kwargs): with as_atomic(self, to_info) as tmp_file: super().upload_fobj(fobj, tmp_file, **kwargs)