# HG changeset patch # User Matt Harbison # Date 2021-09-20 14:44:25 # Node ID c0588d389c5fa7652e2e61264e65f8a710513a8e # Parent 28c62f83b65228fc2b22168ea256c4cae8fdbbb3 typing: suppress an import-error warning in `mercurial/utils/resourceutil.py` Newly caught by pytype 2021-09-09. Differential Revision: https://phab.mercurial-scm.org/D11468 diff --git a/mercurial/utils/resourceutil.py b/mercurial/utils/resourceutil.py --- a/mercurial/utils/resourceutil.py +++ b/mercurial/utils/resourceutil.py @@ -57,7 +57,7 @@ else: try: # importlib.resources exists from Python 3.7; see fallback in except clause # further down - from importlib import resources + from importlib import resources # pytype: disable=import-error # Force loading of the resources module resources.open_binary # pytype: disable=module-attr