Ejemplo n.º 1
0
 def __format__(self, formatstr):
     """Print extension data in human-readable form."""
     data = messages.format_bytearray(self.data, formatstr)
     return "SessionTicketExtension(data={0})".format(data)
Ejemplo n.º 2
0
 def __format__(self, formatstr):
     """Formatted representation of extension."""
     data = messages.format_bytearray(self.renegotiated_connection,
                                      formatstr)
     return "RenegotiationExtension(renegotiated_connection={0})"\
            .format(data)