
flashk at gmail
Nov 5, 2009, 1:00 PM
Post #1 of 4
(156 views)
Permalink
|
|
2to3 ParseError with UTF-8 BOM
|
|
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 <filename>: 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 2to3 script? -farshid -- http://mail.python.org/mailman/listinfo/python-list
|