hvac/v1/__init__.py
def _prep_for_serialization(headers):
        """
        ASCII encode each header value before serializing to JSON
        :param headers: headers
        :return: encoded headers
        """

        ret = {}
        for k, v in headers.items():
            if isinstance(v, bytes):
                ret[k] = [str(v, 'ascii') if sys.version_info[0] >= 3 else str(v)]
            else:
                ret[k] = [v]
        return ret

        ASCII encode each header value before serializing to JSON
        :param headers: headers
        :return: encoded headers
        
ASCII encode each header value before serializing to JSON
ASCII encode each header value before serializing to JSON
def _prep_for_serialization(headers):
        ret = {}
        for k, v in headers.items():
            if isinstance(v, bytes):
                ret[k] = [str(v, 'ascii') if sys.version_info[0] >= 3 else str(v)]
            else:
                ret[k] = [v]
        return ret
def _prep_for_serialization ( headers ) : ret = { } for k , v in headers . items ( ) : if isinstance ( v , bytes ) : ret [ k ] = [ str ( v , 'ascii' ) if sys . version_info [ 0 ] >= 3 else str ( v ) ] else : ret [ k ] = [ v ] return ret
ASCII encode each header value before serializing to JSON
ASCII encode each header value before serializing to JSON
"""
        ASCII encode each header value before serializing to JSON
        :param headers: headers
        :return: encoded headers
        """
None
headers
None