classification
Title: ast and tokenize disagree about line number
Type: behavior Stage:
Components: Library (Lib) Versions: Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Mark.Shannon, nitishch
Priority: normal Keywords:

Created on 2018-01-12 12:16 by Mark.Shannon, last changed 2018-01-17 11:50 by nitishch.

Files
File name Uploaded Description Edit
tokenize_fail_test.py Mark.Shannon, 2018-01-12 12:16
Messages (2)
msg309852 - (view) Author: Mark Shannon (Mark.Shannon) * (Python committer) Date: 2018-01-12 12:16
This occurs (on linux at least) when the the end of line sequence `\r\r\n` occurs in a comment that is indented relative to the following lines.

The attached file demonstrates the problem.
msg310155 - (view) Author: Nitish (nitishch) * Date: 2018-01-17 11:50
What should happen ideally? The stray '\r' be treated like a whitespace?
History
Date User Action Args
2018-01-17 11:50:32nitishchsetmessages: + msg310155
2018-01-16 16:52:09nitishchsetnosy: + nitishch
2018-01-12 12:16:49Mark.Shannoncreate