[New-bugs-announce] [issue24227] IndentationError caused by async / await changes in parser
Arfrever Frehtes Taifersar Arahesis
report at bugs.python.org
Mon May 18 17:22:46 CEST 2015
New submission from Arfrever Frehtes Taifersar Arahesis:
Revision eeeb666a5365 causes "IndentationError: too many levels of indentation" sometimes, e.g. in regenerated IN.py module (e.g. Lib/plat-linux/IN.py).
$ ./python -c 'import IN'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/cpython/Lib/plat-linux/IN.py", line 710
def IN6_IS_ADDR_UNSPECIFIED(a): return \
^
IndentationError: too many levels of indentation
I attach regenerated version of Lib/plat-linux/IN.py, which allows to reproduce this problem. (Regeneration was performed by Lib/plat-linux/regen.)
I suspect that the problem is in changes in Parser/tokenizer.c.
----------
components: Interpreter Core
files: IN.py
messages: 243487
nosy: Arfrever, asvetlov, gvanrossum, haypo, ncoghlan, scoder, yselivanov
priority: release blocker
severity: normal
status: open
title: IndentationError caused by async / await changes in parser
versions: Python 3.5
Added file: http://bugs.python.org/file39419/IN.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24227>
_______________________________________
More information about the New-bugs-announce
mailing list