live
  $   ˆÌËÑ818Êa–Ðz¾”*i?u8 pÜeÕ1hßÏ 2    ‹      Å˜_oÚ0Àß÷)¼<ì�˜èß�©ƒJCk)j™¶iš";‰U'Žb3Ê>ýBšÐÁºª–÷ÄÝqþåÎÎ�½·ã›ÑüÛì|œ__�ÙçW“°:~qGŽçãê‹¾Ýu ¼œZÀJ¤ÌÏ \­VöÊµyÃù-LdÊúPÈ‚†ÒÆ[þ¯´ùo€—„Õ'ð$•Œø““À# ùR
ŠIæ¡ ,‚á
CF0_Ë„g®í8S!—’2Cž¦(Ã¬©ÐpÛ[p¼.ÿÒÑ^EÙ,-6ÿRŠ…ïÉüDŒÆÙÐ’<·|�¦1E8´ y&à‚¡ìÞŽidÄäÐú>ÝüP~P&å¯}�¤ ÑÐz?NÏo†cËŸ¢”xí÷¹V>–…„)Ç4¢t¾«œïè¯ÃÇ•Ï˜ˆ° ¹¤<k\¡Bl£†œ‰)Ö�"HŠ¶Wå‚Ÿ{(Üy³‹ÛËé|<¹­	.C4«{q²,†
’I0¦	%/Ö[–*ð»l!òóZÛ•4N¤åÐ{=_€'ÉƒlãÍ¿Î÷‚Í¨;_[~Ki¯öÉòzÝžÛé:Ýpgn€ŽÇÇÎ«9"Î0)Ú$‡Rù:DaB‚ –(�ö,Ëi§wR²8‡YLædQ–Ñ&!µ¤#»÷É(A€—é¢Á¨U,}ûÄ0K‘§-”JÓAzŽ9’%e¸¢ØJzêêÈ,AªS·Á¨U-'–ÉºÚ,¾tnP*MK]¹†ëJ�·-��¢…Ã96ÌQ5¢ÓXtÙæ2£ÞªË)IjIÏŽ˜#`eÁVÒAÐ³__UËì>ã«¬¡úÓýUçH’æI¢`žX´–ëkQ”sDã*/µ¨g»»ÆJ‹fB"Æ6�¬çðíš¦0’¨�Rôls¯Åzù$ŽÕ4ñ¦–Q—k÷�s•7¤;X�M•cßCAÝ‘íê:hNþCŽÚ-ÀŸ6=;ÊÜ	Q�XÍ,jˆ.qZŠžóÚ\3#Çb¡q,Î©1‚eÎ8ª&°GQÏØò·=ò�·fp{ŸèÁÍe¥«ûÑßˆÀ‚    !   ˆÔ�þc#í,ãr3+o7�ÏÓ„iá:çÒÑ¾Ï ?÷     """Core implementation of import.

This module is NOT meant to be directly imported! It has been designed such
that it can be bootstrapped into Python as the implementation of import. As
such it requires the injection of specific modules and attributes in order to
work. One should use importlib as the public-facing version of this module.

"""
#
# IMPORTANT: Whenever making changes to this module, be sure to run a top-level
# `make regen-importlib` followed by `make` in order to get the frozen version
# of the module updated. Not doing so will result in the Makefile to fail for
# all others who don't have a ./python around to freeze the module
# in the early stages of compilation.
#

# See importlib._setup() for what is injected into the global namespace.

# When editing this code be aware that code executed at import time CANNOT
# reference any injected objects! This includes not only global code but also
# anything specified at the class level.

def _object_name(obj):
    try:
        return obj.__qualname__
    except AttributeError:
        return type(obj).__qualname__

# Bootstrap-related code ######################################################

# Modules injected manually by _setup()
_thread = None
_warnings = None
_weakref = None

# Import done by _install_external_importers()
_bootstrap_external = None


def _wrap(new, old):
    """Simple substitute for functools.update_wrapper."""
    for replace in ['__module__', '__name__', '__qualname__', '__doc__']:
        if hasattr(old, replace):
            setattr(new, replace, getattr(old, replace))
    new.__dict__.update(old.__dict__)


def _new_module(name):
    return type(sys)(name)


# Module-level locking ########################################################

# A dict mapping module names to weakrefs of _ModuleLock instances
# Dictionary protected by the global import lock
_module_locks = {}
# A dict mapping thread ids to _ModuleLock instances
_blocking_on = {}


class _DeadlockError(RuntimeError):
    pass


class _ModuleLock:
    """A recursive lock implementation which is able to detect deadlocks
    (e.g. thread 1 trying to take locks A then B, and thread 2 trying to
    take locks B then A).
    """

    def __init__(self, name):
        self.lock = _thread.allocate_lock()
        self.wakeup = _thread.allocate_lock()
        self.name = name
        self.owner = None
        self.count = 0
        self.waiters = 0

    def has_deadlock(self):
        # Deadlock avoidance for concurrent circular imports.
        me = _thread.get_ident()
        tid = self.owner
        seen = set()
        while True:
            lock = _blocking_on.get(tid)
            if lock is None:
                return False
            tid = lock.owner
            if tid == me:
                return True
            if tid in seen:
                # bpo 38091: the chain of tid's we encounter here
                # eventually leads to a fixpoint or a cycle, but
                # does not reach 'me'.  This means we would not
                # actually deadlock.  This can happen if other
                # threads are at the beginning of acquire() below.
              