-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyc

ó
î:ïNc@@sVdZddlmZddlmZdefd„ƒYZdefd„ƒYZdS(	s$This module provides an IdentityMap.i(tabsolute_import(terrorstIdentityMapcB@s;eZdZd„Zd„Zd„Zd„Zd„ZRS(sAn in memory map from object id to instance.

    An IdentityMap maps from keys to single instances of objects in memory.
    We have explicit calls on the map for the root of each inheritance tree
    that is store in the map. Look for find_CLASS and add_CLASS methods.
    cC@s^|j|ƒ|jkr.tjd|ƒ‚n||j|j|ƒ<|j|ƒ|j|<dS(s%Add weave to the map with a given id.s$weave %s already in the identity mapN(t
_weave_keyt_mapRtBzrErrort_reverse_map(tselftidtweave((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt	add_weave#scC@s|jj|j|ƒdƒS(s8Return the weave for 'id', or None if it is not present.N(RtgetRtNone(RR((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt
find_weave*scC@s)tt|ƒjƒi|_i|_dS(N(tsuperRt__init__RR(R((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR.s	cC@sMt|tƒr"td|ƒ‚n'|jj|j|ƒ|jj|ƒdS(sRemove object from map.s%r not in identity mapN(t
isinstancetlisttKeyErrorRtpopR(Rt	an_object((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt
remove_object3scC@sd|S(sReturn the key for a weaves id.sweave-((RR((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR;s(t__name__t
__module__t__doc__R
R
RRR(((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyRs				tNullIdentityMapcB@s eZdZd„Zd„ZRS(s†A pretend in memory map from object id to instance.

    A NullIdentityMap is an Identity map that does not store anything in it.
    cC@sdS(sSee IdentityMap.add_weave.N((RRR	((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR
FscC@sdS(sSee IdentityMap.find_weave.N(R(RR((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR
Is(RRRR
R
(((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyR@s	N(Rt
__future__RtbzrlibRtobjectRR(((s6/usr/lib/python2.7/dist-packages/bzrlib/identitymap.pyt<module>s%

Copyright © 2017 || Recoded By Mr.Bumblebee