Issue 24227: IndentationError caused by async / await changes in parser (original) (raw)

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 "", line 1, in 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.