Mercurial > treepkg > treepkg
comparison treepkg/cmdexpand.py @ 573:49e63875e041
Fix typo
author | Bjoern Ricks <bricks@intevation.de> |
---|---|
date | Fri, 02 Sep 2011 11:55:04 +0000 |
parents | 9d44d4da3411 |
children | 19d10022b2de |
comparison
equal
deleted
inserted
replaced
572:b8acd77fca60 | 573:49e63875e041 |
---|---|
104 raise ValueError("%r contains an unquoted '@'" % word) | 104 raise ValueError("%r contains an unquoted '@'" % word) |
105 match = rx_list_expansion.match(word) | 105 match = rx_list_expansion.match(word) |
106 if match: | 106 if match: |
107 key = match.group("named") | 107 key = match.group("named") |
108 if key: | 108 if key: |
109 words[index:index + 1] = (str(item).spit(" ") for item in kw[key]) | 109 words[index:index + 1] = (str(item).split(" ") for item in kw[key]) |
110 else: | 110 else: |
111 assert match.group("invalid") != None | 111 assert match.group("invalid") != None |
112 raise ValueError("In %r the characters after the '@'" | 112 raise ValueError("In %r the characters after the '@'" |
113 " do not match a python identifier" % word) | 113 " do not match a python identifier" % word) |
114 else: | 114 else: |