2to3 Help?

James Mills prologic at shortcircuit.net.au
Thu Jan 15 01:09:49 EST 2009


On Thu, Jan 15, 2009 at 4:01 PM,  <marco.m.petersen at gmail.com> wrote:
> I have Python 3.0. I tried to use the 2to3 program included with the
> interpreter to convert some scripts for Python 2.5 to Python 3.0 ones.
> When I try to start it form the Python command line, it says it is a
> syntax error.
>
> This was the line of code:
>
> $ 2to3 testscript.py
>
> Any help would be appreciated.

$ 2to3 testscript.py
RefactoringTool: Skipping implicit fixer: buffer
RefactoringTool: Skipping implicit fixer: idioms
RefactoringTool: Skipping implicit fixer: set_literal
RefactoringTool: Skipping implicit fixer: ws_comma
RefactoringTool: Can't open testscript.py: [Errno 2] No such file or
directory: 'testscript.py'
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't open testscript.py: [Errno 2] No such file or
directory: 'testscript.py'

Seems to work perfectly fine here.

It would greatly help if you showed us the error!

cheers
James



More information about the Python-list mailing list