hgdemandimport/demandimportpy3.py
branchstable
changeset 35794 27b6df1b5adb
parent 35524 fcb1ecf2bef7
child 37843 670eb4fa1b86
equal deleted inserted replaced
35541:87676e8ee056 35794:27b6df1b5adb
    44             self.loader.exec_module(module)
    44             self.loader.exec_module(module)
    45         else:
    45         else:
    46             super().exec_module(module)
    46             super().exec_module(module)
    47 
    47 
    48 # This is 3.6+ because with Python 3.5 it isn't possible to lazily load
    48 # This is 3.6+ because with Python 3.5 it isn't possible to lazily load
    49 # extensions. See the discussion in https://python.org/sf/26186 for more.
    49 # extensions. See the discussion in https://bugs.python.org/issue26186 for more.
    50 _extensions_loader = _lazyloaderex.factory(
    50 _extensions_loader = _lazyloaderex.factory(
    51     importlib.machinery.ExtensionFileLoader)
    51     importlib.machinery.ExtensionFileLoader)
    52 _bytecode_loader = _lazyloaderex.factory(
    52 _bytecode_loader = _lazyloaderex.factory(
    53     importlib.machinery.SourcelessFileLoader)
    53     importlib.machinery.SourcelessFileLoader)
    54 _source_loader = _lazyloaderex.factory(importlib.machinery.SourceFileLoader)
    54 _source_loader = _lazyloaderex.factory(importlib.machinery.SourceFileLoader)