

def seek(self, pos, mode=0):
    self.file.seek(pos, mode)
    if (mode == 0):
        self.start_range = pos
    elif (mode == 1):
        self.start_range += pos
    elif (mode == 2):
        self.start_range = (self.size + pos)

dataset/ETHPy150Open kylemacfarlane/django-cb-storage-s3/src/cuddlybuddly/storage/s3/storage.py S3StorageFile.seek/original