[pod] Improved error handling. [px] More work on PX.

This commit is contained in:
Gaetan Delannay 2013-03-19 22:06:47 +01:00
parent d5296ba321
commit bfbf9bea82
9 changed files with 1853 additions and 1841 deletions

View file

@ -459,8 +459,9 @@ class MemoryBuffer(Buffer):
def createPxAction(self, elem, actionType, statement):
res = 0
statement = statement.strip()
if actionType == 'for':
forRes = MemoryBuffer.forRex.match(statement.strip())
forRes = MemoryBuffer.forRex.match(statement)
if not forRes:
raise ParsingError(BAD_FOR_EXPRESSION % statement)
iter, subExpr = forRes.groups()