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:
            # While S3 does support negative positions, using them makes tell()
            # unreliable. Getting size is a pretty fast HEAD anyway.
            self.start_range = self.size + pos
dataset/ETHPy150Open kylemacfarlane/django-cb-storage-s3/src/cuddlybuddly/storage/s3/storage.py/S3StorageFile.seek/original