parameters: (self, records, stored_records)
docstring: Updates |records| with stored records if id does not already exist.
docstring_summary: Updates |records| with stored records if id does not already exist.
docstring_tokens: Updates |records| with stored records if id does not already exist .
function: def _MergeRecords(self, records, stored_records):
      """Updates |records| with stored records if id does not already exist."""
      if not stored_records:
        return
      new_ids = {r.id for r in records}
      records.extend(r for r in stored_records
                     if getattr(r, 'id', None) not in new_ids)
function_tokens: def _MergeRecords ( self , records , stored_records ) : if not stored_records : return new_ids = { r . id for r in records } records . extend ( r for r in stored_records if getattr ( r , 'id' , None ) not in new_ids )