[pypy-svn] r61245 - pypy/trunk/pypy/interpreter/pyparser
cfbolz at codespeak.net
cfbolz at codespeak.net
Thu Jan 22 16:31:09 CET 2009
Author: cfbolz
Date: Thu Jan 22 16:31:07 2009
New Revision: 61245
Modified:
pypy/trunk/pypy/interpreter/pyparser/pythonlexer.py
Log:
try to be a tiny bit less insane. Armin will write the tests :-)
Modified: pypy/trunk/pypy/interpreter/pyparser/pythonlexer.py
==============================================================================
--- pypy/trunk/pypy/interpreter/pyparser/pythonlexer.py (original)
+++ pypy/trunk/pypy/interpreter/pyparser/pythonlexer.py Thu Jan 22 16:31:07 2009
@@ -169,6 +169,10 @@
tok = Token(parser, parser.tokens['DEDENT'], '')
token_list.append((tok, line, lnum, pos))
last_comment = ''
+ if column != indents[-1]:
+ raise TokenError("unindent does not match any outer indentation level",
+ line, (lnum, 0), token_list)
+
else: # continued statement
if not line:
raise TokenError("EOF in multi-line statement", line,
More information about the Pypy-commit
mailing list