comparison mercurial/util.py @ 43879:40bd667491a7

pytype: suppress the import-error in util.py when importing re2 Differential Revision: https://phab.mercurial-scm.org/D7672
author Matt Harbison <matt_harbison@yahoo.com>
date Sun, 15 Dec 2019 21:22:27 -0500
parents 02ededbef627
children eff050dbb703
comparison
equal deleted inserted replaced
43878:38d6aa768310 43879:40bd667491a7
2117 except OSError: 2117 except OSError:
2118 return True 2118 return True
2119 2119
2120 2120
2121 try: 2121 try:
2122 import re2 2122 import re2 # pytype: disable=import-error
2123 2123
2124 _re2 = None 2124 _re2 = None
2125 except ImportError: 2125 except ImportError:
2126 _re2 = False 2126 _re2 = False
2127 2127