def get_blobstore(layout):
 if layout.is_s3:
  from wal_e.blobstore import s3
  blobstore = s3
 elif layout.is_wabs:
  from wal_e.blobstore import wabs
  blobstore = wabs
 elif layout.is_swift:
  from wal_e.blobstore import swift
  blobstore = swift
 elif layout.is_gs:
  from wal_e.blobstore import gs
  blobstore = gs
 return blobstore

def get_blobstore ( layout ) : if layout . is_s3 : from wal_e . blobstore import s3 blobstore = s3 elif layout . is_wabs : from wal_e . blobstore import wabs blobstore = wabs elif layout . is_swift : from wal_e . blobstore import swift blobstore = swift elif layout . is_gs : from wal_e . blobstore import gs blobstore = gs return blobstore
return blobstore instance for a given storage layout args: layout : target storage layout .