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:
Daniel Hokka Zakrisson 2012-09-29 21:16:13 +02:00
parent 9377c3f525
commit 2d81a1fa77

View file

@ -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