

def storage_for_url(url):
    from .filesystem import FilesystemStorageBackend
    from .aws import S3StorageBackend
    storage_classes = (FilesystemStorageBackend, S3StorageBackend)
    for storage_class in storage_classes:
        if storage_class.valid_url(url):
            return storage_class

dataset/ETHPy150Open mindsnacks/Zinc/src/zinc/storages/__init__.py storage_for_url/original