def adapt_obj(obj):
 blob = sqlite3.Binary(cPickle.dumps(obj))
 if (len(blob) > config.max_blob_size):
  warnings.warn(('large objects stored in SQLite' + LARGE_BLOB_WARNING.format(type(obj), len(blob))))
  warnings.filterwarnings('ignore', 'large objects .*')
 return blob

def adapt_obj ( obj ) : blob = sqlite3 . Binary ( cPickle . dumps ( obj ) ) if ( len ( blob ) > config . max_blob_size ) : warnings . warn ( ( 'large objects stored in SQLite' + LARGE_BLOB_WARNING . format ( type ( obj ) , len ( blob ) ) ) ) warnings . filterwarnings ( 'ignore' , 'large objects .*' ) return blob
binarize objects to be stored in an sqlite database .