def _get_blob_metadata(blob_key):
 key = blobstore_stub.BlobstoreServiceStub.ToDatastoreBlobKey(blob_key)
 try:
  info = datastore.Get(key)
  return (info['size'], info['content_type'], blob_key)
 except datastore_errors.EntityNotFoundError:
  return (None, None, None)

def _get_blob_metadata ( blob_key ) : key = blobstore_stub . BlobstoreServiceStub . ToDatastoreBlobKey ( blob_key ) try : info = datastore . Get ( key ) return ( info [ 'size' ] , info [ 'content_type' ] , blob_key ) except datastore_errors . EntityNotFoundError : return ( None , None , None )
retrieve the metadata about a blob from the blob_key .