Complete the change from $FILE{} to $FILE()
Otherwise, parsing e.g. '$FILE(myfile)'.find("stuff") will include everything up to the last ) as the filename.
This commit is contained in:
parent
9377c3f525
commit
2d81a1fa77
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ def varReplace(raw, vars, depth=0):
|
|||
|
||||
return ''.join(done)
|
||||
|
||||
_FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\}]+)\)")
|
||||
_FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\)]+)\)")
|
||||
def varReplaceFilesAndPipes(basedir, raw):
|
||||
done = [] # Completed chunks to return
|
||||
|
||||
|
|
Loading…
Reference in a new issue