Mercurial > treepkg
changeset 567:9d44d4da3411
commands from config files may contain arguments therefore commandparse must split also kw args
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 11:04:07 +0000 |
parents | 1b3b08bbe27a |
children | bf8114a76224 |
files | treepkg/cmdexpand.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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