def flatten_reply(reply):
    "Flatten node replies.\n\n    Convert from a list of replies in this format::\n\n        [{'example@example.com': reply},\n         {'example@example.com': reply}]\n\n    into this format::\n\n        {'example@example.com': reply,\n         'example@example.com': reply}\n    "
    (nodes, dupes) = ({}, set())
    for item in reply:
        [dupes.add(name) for name in item if (name in nodes)]
        nodes.update(item)
    if dupes:
        warnings.warn(DuplicateNodenameWarning(W_DUPNODE.format(pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)))))
    return nodes
Flatten node replies.

Convert from a list of replies in this format::

    [{'example@example.com': reply},
     {'example@example.com': reply}]

into this format::

    {'example@example.com': reply,
     'example@example.com': reply}
def flatten_reply(reply):
    "Flatten node replies.\n\n    Convert from a list of replies in this format::\n\n        [{'example@example.com': reply},\n         {'example@example.com': reply}]\n\n    into this format::\n\n        {'example@example.com': reply,\n         'example@example.com': reply}\n    "
    (nodes, dupes) = ({}, set())
    for item in reply:
        [dupes.add(name) for name in item if (name in nodes)]
        nodes.update(item)
    if dupes:
        warnings.warn(DuplicateNodenameWarning(W_DUPNODE.format(pluralize(len(dupes), 'name'), ', '.join(sorted(dupes)))))
    return nodes