#NEWLINE# def _candidate_merges( self , f ) : #NEWLINE# #INDENT# '\n        Identifies those features that originally had the same ID as `f`\n        (according to the id_spec),  but were modified because of duplicate\n        IDs.\n        ' #NEWLINE# candidates = [ self . _get_feature ( f . id ) ] #NEWLINE# c = self . conn . cursor ( ) #NEWLINE# results = c . execute ( ( constants . _SELECT + '\n            JOIN duplicates ON\n            duplicates.newid = features.id WHERE duplicates.idspecid = ?' ) , ( results . id , ) ) #NEWLINE# for i in results : #NEWLINE# #INDENT# candidates . append ( feature . Feature ( dialect = self . iterator . dialect , ** i ) ) #NEWLINE# #UNINDENT# return list ( set ( candidates ) )