D7273: compression: tell pytype to not sweat a missing `zstd` module

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Thu Nov 7 03:33:03 EST 2019


Closed by commit rHG9ce76155e0da: compression: tell pytype to not sweat a missing `zstd` module (authored by durin42).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7273?vs=17643&id=17690

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

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

AFFECTED FILES
  mercurial/utils/compression.py

CHANGE DETAILS

diff --git a/mercurial/utils/compression.py b/mercurial/utils/compression.py
--- a/mercurial/utils/compression.py
+++ b/mercurial/utils/compression.py
@@ -646,7 +646,7 @@
         # Not all installs have the zstd module available. So defer importing
         # until first access.
         try:
-            from .. import zstd
+            from .. import zstd  # pytype: disable=import-error
 
             # Force delayed import.
             zstd.__version__



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


More information about the Mercurial-devel mailing list