(self, metric, file)
Function to extract OID from symbols
Function to extract OID from symbols
Function to extract OID from symbols
def extract_oids_from_symbols(self, metric, file):
        """
        Function to extract OID from symbols
        """
        for metric_symbols in metric.get('symbols'):
            OID = metric_symbols.get('OID')
            line = metric_symbols.get('__line__')
            if OID not in self.used_oid:
                self.used_oid[OID] = [(file, line)]
            else:
                self.used_oid[OID].append((file, line))
                self.duplicated[OID] = self.used_oid[OID]
def extract_oids_from_symbols ( self , metric , file ) : for metric_symbols in metric . get ( 'symbols' ) : OID = metric_symbols . get ( 'OID' ) line = metric_symbols . get ( '__line__' ) if OID not in self . used_oid : self . used_oid [ OID ] = [ ( file , line ) ] else : self . used_oid [ OID ] . append ( ( file , line ) ) self . duplicated [ OID ] = self . used_oid [ OID ]