<s> from aleph . archive . file import FileArchive <EOL> from aleph . archive . s3 import S3Archive <EOL> def from_config ( config ) : <EOL> archive_type = config . get ( '<STR_LIT>' , '<STR_LIT:file>' ) . lower ( ) <EOL> if archive_type == '<STR_LIT>' : <EOL> return S3Archive ( config ) <EOL> return FileArchive ( config ) </s>
