mercurial/__main__.py
author Mads Kiilerich <mads@kiilerich.com>
Mon, 22 Jul 2024 18:20:03 +0200
branchstable
changeset 52111 747a1370c598
parent 50697 e7ef11b75fdc
child 51864 1c5810ce737e
permissions -rw-r--r--
utils: fix resourceutil use of deprecated importlib.resources Some importlib functionality was deprecated in 3.11 . The documentation on https://docs.python.org/3.12/library/importlib.resources.html recommends using the new .files() API that was introduced in 3.9.

def run():
    from . import demandimport

    with demandimport.tracing.log('hg script'):
        demandimport.enable()
        from . import dispatch

        dispatch.run()


if __name__ == '__main__':
    run()