ó
½-'Nc           @   s   d  „  Z  d S(   c         C   sÃ   t  | j ƒ  ƒ } t  |  j ƒ  ƒ } i  } x  | | D] } | | | | <q5 Wi  } x7 | | @D]+ } |  | | | k r^ | | | | <q^ q^ Wi  } x  | | D] } |  | | | <qž W| | | f S(   sÌ   Returns the set of differences between two C{dict}s.

    @return: A 3-tuple of dicts with the changes that would need to be
        made to convert C{old} into C{new}: C{(creates, updates, deletes)}
    (   t   sett   iterkeys(   t   oldt   newt   new_keyst   old_keyst   createst   keyt   updatest   deletes(    (    s2   /usr/lib/python2.7/dist-packages/landscape/diff.pyt   diff   s    N(   R
   (    (    (    s2   /usr/lib/python2.7/dist-packages/landscape/diff.pyt   <module>   s    