wpull_hooks: mention that re also returns useful errors
This commit is contained in:
parent
9e8ad88703
commit
c4bbd26779
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user