perceval/backends/core/discourse.py
def sanitize_for_archive(url, headers, payload):
        """Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
        """
        if DiscourseClient.PKEY in payload:
            payload.pop(DiscourseClient.PKEY)

        return url, headers, payload
def sanitize_for_archive(url, headers, payload):
        """Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
        """
        if DiscourseClient.PKEY in payload:
            payload.pop(DiscourseClient.PKEY)

        return url, headers, payload
def sanitize_for_archive ( url , headers , payload ) : if DiscourseClient . PKEY in payload : payload . pop ( DiscourseClient . PKEY ) return url , headers , payload
Sanitize payload of a HTTP request by removing the token information
        before storing/retrieving archived items

        :param: url: HTTP url request
        :param: headers: HTTP headers request
        :param: payload: HTTP payload request

        :returns url, headers and the sanitized payload
Sanitize payload of a HTTP request by removing the token information before storing / retrieving archived items