Re: 2to3 ParseError with UTF-8 BOM

2009-11-13 Thread Gabriel Genellina
En Fri, 06 Nov 2009 14:12:57 -0300, Farshid escribió: On Nov 5, 7:18 pm, Benjamin Peterson wrote: Try the 2to3 distributed in Python 3.1. I get the same error with the 2to3 script in Python 3.1 Reported as http://bugs.python.org/issue7313 -- Gabriel Genellina -- http://mail.python.org/m

Re: 2to3 ParseError with UTF-8 BOM

2009-11-05 Thread Benjamin Peterson
Farshid gmail.com> writes: > If I remove the BOM then it works fine. Is this expected behavior or a > bug in the 2to3 script? Try the 2to3 distributed in Python 3.1. -- http://mail.python.org/mailman/listinfo/python-list

2to3 ParseError with UTF-8 BOM

2009-11-05 Thread Farshid
I'm using Python 2.6.2 and when I run the 2to3 script on a file that contains a UTF-8 BOM I get the following error: RefactoringTool: Can't parse : ParseError: bad token: type=55, value='\xef', context=('', (1, 0)) If I remove the BOM then it works fine. Is this expected behavior or a bug in the