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

login
register
mail settings
Submitter phabricator
Date Dec. 16, 2019, 6:31 a.m.
Message ID <b6c43625494e788ac230fd74e08085a8@localhost.localdomain>
Download mbox | patch
Permalink /patch/43857/
State Not Applicable
Headers show

Comments

phabricator - Dec. 16, 2019, 6:31 a.m.
Closed by commit rHG40bd667491a7: pytype: suppress the import-error in util.py when importing re2 (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/D7672?vs=18736&id=18748

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

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, pulkit
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: