#NEWLINE# def get_protocols( self , protocol ) : #NEWLINE# #INDENT# 'Returns a list of protocols that matches to the specified protocol.\n        ' #NEWLINE# if isinstance ( protocol , packet_base . PacketBase ) : #NEWLINE# #INDENT# protocol = protocol . __class__ #NEWLINE# #UNINDENT# assert issubclass ( protocol , packet_base . PacketBase ) #NEWLINE# return [ p for p in self . protocols if isinstance ( p , protocol ) ]