def one_to_dict(cur=None, row=None, col_names=None):

    if col_names is None:
        assert cur is not None, 'You must specify cur or col_names.'
        col_names = extract_col_names(cur)

    if row is None:
        assert cur is not None, 'You must specify cur or row.'
        row = cur.fetchone()

    return dict(izip(col_names, row))
Compares the contents of the specified folder, and checks to make sure
dataset/ETHPy150Open moskytw/mosql/mosql/db.py/one_to_dict--crossover with--dataset/ETHPy150Open rackspace/pyrax/pyrax/object_storage.py/StorageClient.sync_folder_to_container