#NEWLINE# def __init__( self , data = None , protocols = None , parse_cls = ethernet . ethernet ) : #NEWLINE# #INDENT# super ( Packet , self ) . __init__ ( ) #NEWLINE# self . data = data #NEWLINE# if ( protocols is None ) : #NEWLINE# #INDENT# self . protocols = [ ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . protocols = protocols #NEWLINE# #UNINDENT# if protocols . data : #NEWLINE# #INDENT# self . _parser ( parse_cls )