Attorney General warns newspapers over contempt