wpull_hooks: mention that re also returns useful errors

This commit is contained in:
Ivan Kozik 2018-10-09 16:29:14 +00:00
parent 9e8ad88703
commit c4bbd26779

View File

@ -27,7 +27,7 @@ def cf(fname):
def re2_compile(regexp):
# Validate with re first, because re2 may be more prone to segfaulting on
# bad regexps.
# bad regexps, and because re returns useful errors.
re.compile(regexp)
return re2.compile(regexp)