#NEWLINE# def _parse_rid( self , content ) : #NEWLINE# #INDENT# '\n          Consume a Record ID.\n          :param content str The input to consume\n          :return: list The collected RID and any remaining content.\n        ' #NEWLINE# length = len ( content ) #NEWLINE# collected = '' #NEWLINE# cluster = None #NEWLINE# i = 0 #NEWLINE# for i in range ( 0 , length ) : #NEWLINE# #INDENT# c = content [ i ] #NEWLINE# if ( ( cluster is None ) and ( c == ':' ) ) : #NEWLINE# #INDENT# cluster = collected #NEWLINE# collected = '' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if self . _is_numeric ( c ) : #NEWLINE# #INDENT# collected += c #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return [ OrientRecordLink ( ( ( cluster + ':' ) + collected ) ) , content [ i : ] ]