#NEWLINE# def serialize_tail( self ) : #NEWLINE# #INDENT# flags = ( ( ( ( self . i_flag & 1 ) << 2 ) ^ ( ( self . m_flag & 1 ) << 1 ) ) ^ ( self . ms_flag & 1 ) ) #NEWLINE# head = bytearray ( struct . pack ( head . _PACK_STR , self . mtu , self . options , flags , self . sequence_number ) ) #NEWLINE# try : #NEWLINE# #INDENT# return ( head + reduce ( ( lambda a , b : ( a + b ) ) , ( hdr . serialize ( ) for hdr in self . lsa_headers ) ) ) #NEWLINE# #UNINDENT# except TypeError : #NEWLINE# #INDENT# return head