logentries_api/special_alerts.py
def _api_delete(self, url, **kwargs):
        """
        Convenience method for deleting
        """
        response = self.session.delete(
            url=url,
            headers=self._get_api_headers(),
            **kwargs
        )
        if not response.ok:
            raise ServerException(
                '{0}: {1}'.format(
                    response.status_code,
                    response.text or response.reason
                ))
        return response
def _api_delete(self, url, **kwargs):
        """
        Convenience method for deleting
        """
        response = self.session.delete(
            url=url,
            headers=self._get_api_headers(),
            **kwargs
        )
        if not response.ok:
            raise ServerException(
                '{0}: {1}'.format(
                    response.status_code,
                    response.text or response.reason
                ))
        return response
def _api_delete ( self , url , * * kwargs ) : response = self . session . delete ( url = url , headers = self . _get_api_headers ( ) , * * kwargs ) if not response . ok : raise ServerException ( '{0}: {1}' . format ( response . status_code , response . text or response . reason ) ) return response
Convenience method for deleting
Convenience method for deleting