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.
pull/1149/head
Daniel Hokka Zakrisson 12 years ago
parent 9377c3f525
commit 2d81a1fa77

@ -321,7 +321,7 @@ def varReplace(raw, vars, depth=0):
return ''.join(done) return ''.join(done)
_FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\}]+)\)") _FILEPIPECRE = re.compile(r"\$(?P<special>FILE|PIPE)\(([^\)]+)\)")
def varReplaceFilesAndPipes(basedir, raw): def varReplaceFilesAndPipes(basedir, raw):
done = [] # Completed chunks to return done = [] # Completed chunks to return

Loading…
Cancel
Save