def _get_row(row, key):
 if (row is not None):
  value = row[0]
  if (isinstance(value, (sqlite3.Binary, bytes)) and (key != 'resumed_from')):
   value = cPickle.loads(bytes(value))
  return value
 raise KeyError(key)

def _get_row ( row , key ) : if ( row is not None ) : value = row [ 0 ] if ( isinstance ( value , ( sqlite3 . Binary , bytes ) ) and ( key != 'resumed_from' ) ) : value = cPickle . loads ( bytes ( value ) ) return value raise KeyError ( key )
handle the returned row e .