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 a29f775851
commit 3581b89fbb
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
1 changed files with 2 additions and 1 deletions

View File

@ -694,7 +694,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