#NEWLINE# @ property #NEWLINE# def next( self ) : #NEWLINE# #INDENT# 'Get the next segment.' #NEWLINE# seg = Segment ( segment_t = idaapi . get_next_seg ( self . ea ) ) #NEWLINE# if ( self . ea <= self . ea ) : #NEWLINE# #INDENT# raise exceptions . NoMoreSegments ( 'This is the last segment. No segments exist after it.' ) #NEWLINE# #UNINDENT# return seg