D7469: profiling: disable the import-error warning for the flamegraph module
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Thu Nov 21 23:23:31 UTC 2019
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
The module being missing is properly handled, but pytype was complaining.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list