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

login
register
mail settings
Submitter phabricator
Date Nov. 22, 2019, 2:51 a.m.
Message ID <731faab569755ce0ca78f1c3783a053a@localhost.localdomain>
Download mbox | patch
Permalink /patch/43400/
State Not Applicable
Headers show

Comments

phabricator - Nov. 22, 2019, 2:51 a.m.
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




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

Patch

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(
             _(