def _fields_list_to_dict(fields):
for key in fields:<EOL><INDENT>assert isinstance(key, (str,unicode))<EOL><DEDENT>return dict([[key, <NUM_LIT:1>] for key in fields])<EOL>
Takes a list of field names and returns a matching dictionary.

    ["a", "b"] becomes {"a": 1, "b": 1}

    and

    ["a.b.c", "d", "a.c"] becomes {"a.b.c": 1, "d": 1, "a.c": 1}