profiling: disable the import-error warning for the flamegraph module
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 21 Nov 2019 15:38:23 -0500
changeset 43764 6c8ba31405d9
parent 43763 d18cf63e1dbd
child 43765 882e633ac92c
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
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(
             _(