-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/demandimport.pyc

ó
Ì\,Tc@sdZddlZddlZddlZeZeƒZy?dZej	ddkr^dZneej
iideƒWnek
r”d„Z
nXeZ
d„Zdefd„ƒYZddded	„Zd
ddd
ddddddddddgZd„Zd„Zd„ZdS(sU
demandimport - automatic demandloading of modules

To enable this module, do:

  import demandimport; demandimport.enable()

Imports of the following forms will be demand-loaded:

  import a, b.c
  import a.b as c
  from a import b,c # a will be loaded immediately

These imports will not be delayed:

  from a import *
  b = __import__(a)
iÿÿÿÿNiicCst||||ƒS(s'call _origimport with no level argument(t_origimport(tnametglobalstlocalstfromlisttlevel((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt_import'scGs™y||||ŒSWn~tk
r”|s0‚nd|}|jddƒd}|jddƒjddƒd}||kr„‚n||||ŒSXdS(Nshgext_%st.iit__name__t(tImportErrortsplittget(t
importfuncRRtargst	hgextnametnameroottcontextroot((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt_hgextimport-s

"t
_demandmodcBsPeZdZed„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(smodule demand-loader and proxycCsud|kr0|jddƒ\}}|g}n|}g}tj|d|||||fƒtj|ddƒdS(NRit_datat_module(Rtobjectt__setattr__tNone(tselfRRRRtheadtresttafter((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt__init__>scCs|jdj|ƒdS(s%add to the list of submodules to loadiN(Rtappend(RR((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt_extendHscs«|js§|j\}}}}}tt|||d|ƒ}‡fd†‰x|D]}ˆ||ƒqRW|r‘|j|ƒ|kr‘|||<ntj|d|ƒndS(Ncs”|d}}d|kr4|jddƒ\}}nt||tƒtkrqt||t||j|jƒƒn|rˆt||ƒ|ƒndS(NRi(RRtgetattrtnothingtsetattrRt__dict__(tmodtpthtt(tsubload(s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyR(Ps
%R(RRRRRRRR(RRRRRRR$tx((R(s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt_loadKs		

cCs'|jrd|jdSd|jdS(Ns<proxied module '%s'>is<unloaded module '%s'>(RR(R((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt__repr__as	cOstdt|ƒƒ‚dS(Ns%s object is not callable(t	TypeErrortrepr(RRtkwargs((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt__call__escCs6|dkrtj||ƒS|jƒt|j|ƒS(NRRR*R(s_datas_extends_loads_module(Rt__getattribute__R*R R(Rtattr((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyR0gs
cCs!|jƒt|j||ƒdS(N(R*R"R(RR1tval((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyRls
(Rt
__module__t__doc__RRRR*R+R/R0R(((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyR<s
					c
CsÛ|s|tks|dkr8tt|||||ƒS|sçd|krÔ|jddƒ\}}|r–|jddƒ|kr–t|||||ƒS||krÔt||tƒrÉ||j|ƒn||Snt||||ƒS|dkr	t	|||||ƒStt	|||ƒ}xg|jdƒdD]R}t
||tƒtkrut||t||j
|j
ƒƒnt
||ƒ}q2WxH|D]@}	t
||	tƒtkrt||	t|	|j
|ƒƒqqW|SdS(Nt*RiRiÿÿÿÿ(R5(tignoreRRRRRt
isinstanceRRRR R!R"R#(
RRRRRtbaseRR$tcompR)((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt
_demandimportps.%
&t_hashlibt_xmlplustfcntlswin32com.gen_pyt_winregt	pythoncomtpwdtgrptresourcetgtkt__main__t_ssltrfc822t	mimetoolscCs
tjtkS(N(t__builtin__t
__import__R:(((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt	isenabled©scCs(tjjdƒdkr$tt_ndS(s'enable global demand-loading of modulestHGDEMANDIMPORTtdisableN(tostenvironRR:RHRI(((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pytenable¬scCs
tt_dS(s(disable global demand-loading of modulesN(RRHRI(((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyRL±s(R4RHRMtsysRIRRR!Rtversion_infoRRR,RRRR:R6RJRORL(((s:/usr/lib/python2.7/dist-packages/mercurial/demandimport.pyt<module>s>$		

	4#			

Copyright © 2017 || Recoded By Mr.Bumblebee