def read(self, channel, resource, limit = 1, source = "raw", time_range = None, data_filter = None, sample_rate = None ):
    query = {'limit': limit, 'source': source}
    if time_range:
      query['time-range'] = time_range
    if data_filter:
      query['filter'] = data_filter
    if sample_rate:
      query['sample-rate'] = sample-rate

    endpoint = ( __readEndpoint__, channel, resource ) % "%s/%s/%s"
    response = self.__getData__( endpoint, query, True )
    return response;
dataset/ETHPy150Open beebotte/bbt_python/beebotte/__init__.py/BBT.read/swapped operands of `%`