[Treepkg-commits] r530 - trunk/treepkg

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Sep 2 13:04:07 CEST 2011


Author: bricks
Date: 2011-09-02 13:04:07 +0200 (Fri, 02 Sep 2011)
New Revision: 530

Modified:
   trunk/treepkg/cmdexpand.py
Log:
commands from config files may contain arguments therefore commandparse must split also kw args


Modified: trunk/treepkg/cmdexpand.py
===================================================================
--- trunk/treepkg/cmdexpand.py	2011-09-02 10:41:14 UTC (rev 529)
+++ trunk/treepkg/cmdexpand.py	2011-09-02 11:04:07 UTC (rev 530)
@@ -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



More information about the Treepkg-commits mailing list