shims/qpid-proton-python/src/jms_messages_test/Receiver.py [180:199]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if self.current_subtype == 'boolean':
            return str(value)
        if self.current_subtype == 'byte':
            return hex(value)
        if self.current_subtype == 'bytes':
            return base64.b64encode(value).decode('utf-8')
        if self.current_subtype == 'char':
            return base64.b64encode(bytes(value, 'utf-8')).decode('utf-8')
        if self.current_subtype == 'double':
            return '0x%016x' % struct.unpack('!Q', struct.pack('!d', value))[0]
        if self.current_subtype == 'float':
            return '0x%08x' % struct.unpack('!L', struct.pack('!f', value))[0]
        if self.current_subtype == 'int':
            return hex(value)
        if self.current_subtype == 'long':
            return hex(int(value))
        if self.current_subtype == 'short':
            return hex(value)
        if self.current_subtype == 'string':
            return str(value)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



shims/qpid-proton-python/src/jms_messages_test/Receiver.py [243:262]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        if self.current_subtype == 'boolean':
            return str(value)
        if self.current_subtype == 'byte':
            return hex(value)
        if self.current_subtype == 'bytes':
            return base64.b64encode(value).decode('utf-8')
        if self.current_subtype == 'char':
            return base64.b64encode(bytes(value, 'utf-8')).decode('utf-8')
        if self.current_subtype == 'double':
            return '0x%016x' % struct.unpack('!Q', struct.pack('!d', value))[0]
        if self.current_subtype == 'float':
            return '0x%08x' % struct.unpack('!L', struct.pack('!f', value))[0]
        if self.current_subtype == 'int':
            return hex(value)
        if self.current_subtype == 'long':
            return hex(int(value))
        if self.current_subtype == 'short':
            return hex(value)
        if self.current_subtype == 'string':
            return str(value)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



