[Updated] D11468: typing: suppress an import-error warning in `mercurial/utils/resourceutil.py`

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Wed Sep 22 07:56:38 UTC 2021


Closed by commit rHGc0588d389c5f: typing: suppress an import-error warning in `mercurial/utils/resourceutil.py` (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/D11468?vs=30342&id=30360

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

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

AFFECTED FILES
  mercurial/utils/resourceutil.py

CHANGE DETAILS

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 @@
 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



To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210922/0b7b990e/attachment-0002.html>


More information about the Mercurial-patches mailing list