D7469: profiling: disable the import-error warning for the flamegraph module

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Thu Nov 21 21:51:08 EST 2019


Closed by commit rHG6c8ba31405d9: profiling: disable the import-error warning for the flamegraph module (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7469?vs=18267&id=18273

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7469/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7469

AFFECTED FILES
  mercurial/profiling.py

CHANGE DETAILS

diff --git a/mercurial/profiling.py b/mercurial/profiling.py
--- a/mercurial/profiling.py
+++ b/mercurial/profiling.py
@@ -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(
             _(



To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel


More information about the Mercurial-devel mailing list