#NEWLINE# @ staticmethod #NEWLINE# def _parse_bag( content ) : #NEWLINE# #INDENT# '\n         Consume a record id bag.\n           :param content str The content to consume\n           :return: list The collected record id bag and any remaining content.\n        ' #NEWLINE# length = len ( content ) #NEWLINE# collected = '' #NEWLINE# i = 0 #NEWLINE# for i in range ( 0 , length ) : #NEWLINE# #INDENT# c = content [ i ] #NEWLINE# if ( c == ';' ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# collected += c #NEWLINE# #UNINDENT# #UNINDENT# return [ OrientBinaryObject ( collected ) , content [ ( i + 1 ) : ] ]