def _save(self, name, content):
        name = name.replace('\\', '/')

        if isinstance(content, (AppEngineFile, AppEngineUploadedFile)):
            data = content.blobstore_info
        elif hasattr(content, 'file') and \
             isinstance(content.file, (AppEngineFile, AppEngineUploadedFile)):
            data = content.file.blobstore_info
        elif isinstance(content, File):
            guessed_type = mimetypes.guess_type(name)[0]

            if self.storage_service == CLOUD_STORAGE_SERVICE:
                assert cloudstorage, 'cloudstorage module is not available.'

                file_name = '/%s/%s' % (self.cloud_storage_bucket, name)

                with cloudstorage.open(file_name, 'w', guessed_type or 'application/octet-stream') as f:
                    for chunk in content.chunks():
                        f.write(chunk)

                data = self._get_info('/gs' + file_name)
            else:
                # TODO deprecated

                file_name = files.blobstore.create(mime_type=guessed_type or 'application/octet-stream',
                                                   _blobinfo_uploaded_filename=name)

                with files.open(file_name, 'a') as f:
                    for chunk in content.chunks():
                        f.write(chunk)

                files.finalize(file_name)

                data = files.blobstore.get_blob_key(file_name)
        else:
            raise ValueError("The App Engine storage backend only supports "
                             "AppEngineFile instances or File instances.")

        if isinstance(data, CloudStorageInfo):
            return '/gs' + data.fullname

        if isinstance(data, BlobInfo):
            data = data.key()

        if isinstance(data, BlobKey):
            return '%s/%s' % (data, name.lstrip('/'))

        raise ValueError(type(data) % "Unknown type returned from saving: %s")
dataset/ETHPy150Open django-nonrel/djangoappengine/djangoappengine/storage.py/AppEngineStorage._save/swapped operands of `%`