# HG changeset patch # User Bjoern Ricks # Date 1314961447 0 # Node ID 9d44d4da3411e46c63538b9bb757c158ca986df5 # Parent 1b3b08bbe27a789c40fe96435b0c68dcd8154cf5 commands from config files may contain arguments therefore commandparse must split also kw args diff -r 1b3b08bbe27a -r 9d44d4da3411 treepkg/cmdexpand.py --- a/treepkg/cmdexpand.py Fri Sep 02 10:41:14 2011 +0000 +++ b/treepkg/cmdexpand.py Fri Sep 02 11:04:07 2011 +0000 @@ -106,11 +106,11 @@ if match: key = match.group("named") if key: - words[index:index + 1] = (str(item) for item in kw[key]) + words[index:index + 1] = (str(item).spit(" ") for item in kw[key]) else: assert match.group("invalid") != None raise ValueError("In %r the characters after the '@'" " do not match a python identifier" % word) else: - words[index] = expandword(word, kw) + words[index:index +1] = expandword(word, kw).split(" ") return words