[issue1001] 2to3 crashes on input files with no trailing newlines

Adrian Holovaty report at bugs.python.org
Thu Aug 23 22:00:53 CEST 2007


New submission from Adrian Holovaty:

The 2to3 Python 3k migration utility crashes with the following
traceback on any input file that does *not* have a trailing newline. It
doesn't seem to matter whether the input file needs modifications or not.


RefactoringTool: Can't parse /path/to/testing2.py: ParseError: bad
input: type=0, value='', context=('\n', (2, 0))
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't parse /path/to/testing2.py: ParseError: bad
input: type=0, value='', context=('\n', (2, 0))

----------
nosy: +adrianholovaty

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1001>
__________________________________


More information about the Python-bugs-list mailing list