mercurial/util.py
branchstable
changeset 50684 82cf392c99f6
parent 49861 ffeeaeb2d142
child 50685 293e1763982e
equal deleted inserted replaced
50664:e7a3611181aa 50684:82cf392c99f6
  2212 
  2212 
  2213 class _re:
  2213 class _re:
  2214     def _checkre2(self):
  2214     def _checkre2(self):
  2215         global _re2
  2215         global _re2
  2216         global _re2_input
  2216         global _re2_input
       
  2217         if _re2 is not None:
       
  2218             # we already have the answer
       
  2219             return
  2217 
  2220 
  2218         check_pattern = br'\[([^\[]+)\]'
  2221         check_pattern = br'\[([^\[]+)\]'
  2219         check_input = b'[ui]'
  2222         check_input = b'[ui]'
  2220         try:
  2223         try:
  2221             # check if match works, see issue3964
  2224             # check if match works, see issue3964