Mercurial > hg
view mercurial/__main__.py @ 51702:b0a4de6c14f8
pytype: work around wrong ImportError flagging
As documented in https://github.com/google/pytype/issues/163, newer versions
of Pytype do not understand caught `ImportError`, so we temporarily ignore
them where applicable.
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 18 Jul 2024 12:03:29 +0200 |
parents | e7ef11b75fdc |
children | 1c5810ce737e |
line wrap: on
line source
def run(): from . import demandimport with demandimport.tracing.log('hg script'): demandimport.enable() from . import dispatch dispatch.run() if __name__ == '__main__': run()