FAQ
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:
typeU, 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

Search Discussions

  • Benjamin Peterson at Nov 6, 2009 at 3:18 am

    Farshid <flashk <at> 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.
  • Farshid at Nov 6, 2009 at 5:12 pm

    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

    -farshid
  • Gabriel Genellina at Nov 13, 2009 at 12:04 pm

    En Fri, 06 Nov 2009 14:12:57 -0300, Farshid <flashk at gmail.com> 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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedNov 5, '09 at 9:00p
activeNov 13, '09 at 12:04p
posts4
users3
websitepython.org

People

Translate

site design / logo © 2022 Grokbase