Patchwork D7672: pytype: suppress the import-error in util.py when importing re2

login
register
mail settings
Submitter phabricator
Date Dec. 16, 2019, 4:13 a.m.
Message ID <differential-rev-PHID-DREV-w4c76osg2t3s5hmfmsni-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43845/
State Superseded
Headers show

Comments

phabricator - Dec. 16, 2019, 4:13 a.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -2119,7 +2119,7 @@ 
 
 
 try:
-    import re2
+    import re2  # pytype: disable=import-error
 
     _re2 = None
 except ImportError: