This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: IndentationError caused by async / await changes in parser
Type: Stage: resolved
Components: Interpreter Core Versions: Python 3.5
process
Status: closed Resolution: duplicate
Dependencies: Superseder: [3.5 Regression] unable to byte-compile the attached IN.py
View: 24226
Assigned To: yselivanov Nosy List: Arfrever, asvetlov, gvanrossum, larry, ncoghlan, scoder, vstinner, yselivanov, zach.ware
Priority: release blocker Keywords:

Created on 2015-05-18 15:22 by Arfrever, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
IN.py Arfrever, 2015-05-18 15:22
Messages (2)
msg243487 - (view) Author: Arfrever Frehtes Taifersar Arahesis (Arfrever) * (Python triager) Date: 2015-05-18 15:22
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.
msg243488 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2015-05-18 15:25
Duplicate of #24226.
History
Date User Action Args
2022-04-11 14:58:17adminsetnosy: + larry
github: 68415
2015-05-18 15:25:42zach.waresetstatus: open -> closed

superseder: [3.5 Regression] unable to byte-compile the attached IN.py

nosy: + zach.ware
messages: + msg243488
resolution: duplicate
stage: resolved
2015-05-18 15:24:53yselivanovsetassignee: yselivanov
2015-05-18 15:22:46Arfrevercreate