# HG changeset patch # User Matt Harbison # Date 1574368703 18000 # Node ID 6c8ba31405d9bdbe2d7b7b93ce712c297616ad1a # Parent d18cf63e1dbd22c37bfd1a2f84773acf73953c77 profiling: disable the import-error warning for the flamegraph module The module being missing is properly handled, but pytype was complaining. Differential Revision: https://phab.mercurial-scm.org/D7469 diff -r d18cf63e1dbd -r 6c8ba31405d9 mercurial/profiling.py --- a/mercurial/profiling.py Thu Nov 21 15:31:33 2019 -0500 +++ b/mercurial/profiling.py Thu Nov 21 15:38:23 2019 -0500 @@ -77,7 +77,7 @@ @contextlib.contextmanager def flameprofile(ui, fp): try: - from flamegraph import flamegraph + from flamegraph import flamegraph # pytype: disable=import-error except ImportError: raise error.Abort( _(