#NEWLINE# @ staticmethod #NEWLINE# def segment_to_message( segment ) : #NEWLINE# #INDENT# message = segment [ 0 : 3 ] #NEWLINE# message += pack ( 'BB' , ( ( ord ( segment [ 3 ] ) & 32 ) << 2 ) , ( ord ( segment [ 3 ] ) & 15 ) ) #NEWLINE# message += segment [ 4 : ( - 2 ) ] #NEWLINE# return segment