Fix a regular expression problem when recognizing labels for string substitution.
--HG-- extra : convert_revision : ba398e1b434efda28882f159d5a4419302276371
This commit is contained in:
parent
4285990a96
commit
ab2bed349b
1 changed files with 1 additions and 1 deletions
|
@ -1032,7 +1032,7 @@ def substBitOps(code):
|
|||
# Template objects are format strings that allow substitution from
|
||||
# the attribute spaces of other objects (e.g. InstObjParams instances).
|
||||
|
||||
labelRE = re.compile(r'[^%]%\(([^\)]+)\)[sd]')
|
||||
labelRE = re.compile(r'(?<!%)%\(([^\)]+)\)[sd]')
|
||||
|
||||
class Template:
|
||||
def __init__(self, t):
|
||||
|
|
Loading…
Reference in a new issue