Enable custom regexp in bld(features='subst', re_m4=...)

This commit is contained in:
Thomas Nagy 2014-01-14 19:58:45 +01:00
parent 44c4fe8b6e
commit 37f051a3a2
1 changed files with 2 additions and 1 deletions

View File

@ -687,7 +687,8 @@ class subst_pc(Task.Task):
lst.append(g(1))
return "%%(%s)s" % g(1)
return ''
code = re_m4.sub(repl, code)
global re_m4
code = getattr(self.generator, 're_m4', re_m4).sub(repl, code)
try:
d = self.generator.dct