pricedb/csv.py
def translate_symbol(self, in_symbol: str) -> str:
        """ translate the incoming symbol into locally-used """
        # read all mappings from the db
        if not self.symbol_maps:
            self.__load_symbol_maps()
        # translate the incoming symbol
        result = self.symbol_maps[in_symbol] if in_symbol in self.symbol_maps else in_symbol

        return result
def translate_symbol(self, in_symbol: str) -> str:
        """ translate the incoming symbol into locally-used """
        # read all mappings from the db
        if not self.symbol_maps:
            self.__load_symbol_maps()
        # translate the incoming symbol
        result = self.symbol_maps[in_symbol] if in_symbol in self.symbol_maps else in_symbol

        return result
def translate_symbol ( self , in_symbol : str ) -> str : # read all mappings from the db if not self . symbol_maps : self . __load_symbol_maps ( ) # translate the incoming symbol result = self . symbol_maps [ in_symbol ] if in_symbol in self . symbol_maps else in_symbol return result
translate the incoming symbol into locally-used
translate the incoming symbol into locally - used