##// END OF EJS Templates
re2: adjust local variable assignment scope...
Matt Harbison -
r47688:9c3e8456 default
parent child Browse files
Show More
@@ -2189,10 +2189,11 b' class _re(object):'
2189 def _checkre2(self):
2189 def _checkre2(self):
2190 global _re2
2190 global _re2
2191 global _re2_input
2191 global _re2_input
2192
2193 check_pattern = br'\[([^\[]+)\]'
2194 check_input = b'[ui]'
2192 try:
2195 try:
2193 # check if match works, see issue3964
2196 # check if match works, see issue3964
2194 check_pattern = br'\[([^\[]+)\]'
2195 check_input = b'[ui]'
2196 _re2 = bool(re2.match(check_pattern, check_input))
2197 _re2 = bool(re2.match(check_pattern, check_input))
2197 except ImportError:
2198 except ImportError:
2198 _re2 = False
2199 _re2 = False
General Comments 0
You need to be logged in to leave comments. Login now