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

2007-08-23 Thread Adrian Holovaty

Changes by Adrian Holovaty:


--
components: Demos and Tools
severity: normal
status: open
title: 2to3 crashes on input files with no trailing newlines
type: crash

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1001>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2007-08-23 Thread Adrian Holovaty

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 <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1001>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2007-08-23 Thread Adrian Holovaty

Adrian Holovaty added the comment:

(Sorry, the previous error snippet isn't a traceback as I had said. It's
the error text.)

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1001>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-08-26 Thread Adrian Holovaty

New submission from Adrian Holovaty:

Per a Python-3000 mailing list discussion here --
http://mail.python.org/pipermail/python-3000/2007-August/009835.html --
I have implemented an addition to the 2to3 utility that enables warnings
to be output as comments in Python source code instead of being logged
to stdout.

See the attached patch and a description of the changes here:
http://mail.python.org/pipermail/python-3000/2007-August/009881.html

--
components: Demos and Tools
files: 2to3_insert_comment.diff
messages: 55331
nosy: adrianholovaty
severity: normal
status: open
title: [patch] Add 2to3 support for displaying warnings as Python comments

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1034>
__

2to3_insert_comment.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2007-08-26 Thread Adrian Holovaty

Adrian Holovaty added the comment:

I'm also attaching 2to3_comment_warnings.diff, which is an example of
how we could integrate the insert_comment() method from the first patch
to replace the current functionality of fixes.basefix.BaseFix.warning().

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1034>
__

2to3_comment_warnings.diff
Description: Binary data
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2007-09-06 Thread Adrian Holovaty

Adrian Holovaty added the comment:

I just checked, and, yes, it's been fixed.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1001>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com