Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/mercurial/dicthelpers.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��c@sdd�Zdd�ZdS(cCs�i}||kr|SxK|j�D]=\}}|j||�}||kr#||f||<q#q#WxF|D]>}||krk||}||kr�||f||<q�qkqkW|S(s�Return all key-value pairs that are different between d1 and d2.

    This includes keys that are present in one dict but not the other, and
    keys whose values are different. The return value is a dict with values
    being pairs of values from d1 and d2 respectively, and missing values
    treated as default, so if a value is missing from one dict and the same as
    default in the other, it will not be returned.(t	iteritemstget(td1td2tdefaulttrestk1tv1tv2tk2((s9/sys/lib/python2.7/site-packages/mercurial/dicthelpers.pytdiffs

cCs�i}xM|j�D]?\}}||krB|||f||<q||f||<qW||krf|Sx1|D])}||krm|||f||<qmqmW|S(s�Return all key-value pairs from both d1 and d2.

    This is akin to an outer join in relational algebra. The return value is a
    dict with values being pairs of values from d1 and d2 respectively, and
    missing values represented as default.(R(RRRRRRR	((s9/sys/lib/python2.7/site-packages/mercurial/dicthelpers.pytjoin"s
N(tNoneR
R(((s9/sys/lib/python2.7/site-packages/mercurial/dicthelpers.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.