<s> from . amazon import S3BotoStorage , S3BotoStorageFile <EOL> from . cloudfiles import CloudFilesStorage , CloudFilesStorageFile <EOL> from . filesystem import FileSystemStorage , FileSystemStorageFile <EOL> from . mock import MockStorage , MockStorageFile <EOL> from . base import ( <EOL> FileExistsError , <EOL> FileNotFoundError , <EOL> PermissionError , <EOL> Storage , <EOL> StorageException , <EOL> StorageFile <EOL> ) <EOL> __all__ = ( <EOL> CloudFilesStorage , <EOL> CloudFilesStorageFile , <EOL> FileExistsError , <EOL> FileNotFoundError , <EOL> FileSystemStorage , <EOL> FileSystemStorageFile , <EOL> MockStorage , <EOL> MockStorageFile , <EOL> PermissionError , <EOL> S3BotoStorage , <EOL> S3BotoStorageFile , <EOL> Storage , <EOL> StorageException , <EOL> StorageFile , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' , <EOL> ) <EOL> STORAGE_DRIVERS = { <EOL> '<STR_LIT>' : S3BotoStorage , <EOL> '<STR_LIT>' : CloudFilesStorage , <EOL> '<STR_LIT>' : FileSystemStorage , <EOL> '<STR_LIT>' : MockStorage <EOL> } <EOL> def get_default_storage_class ( app ) : <EOL> return STORAGE_DRIVERS [ app . config [ '<STR_LIT>' ] ] <EOL> def get_filesystem_storage_class ( app ) : <EOL> if app . config [ '<STR_LIT>' ] : <EOL> return MockStorage <EOL> else : <EOL> return FileSystemStorage </s>
