[New-bugs-announce] [issue4072] build_py support for lib2to3 is stale

Mark Hammond report at bugs.python.org
Wed Oct 8 02:49:57 CEST 2008

New submission from Mark Hammond <mhammond at users.sourceforge.net>:

The way build_py uses lib2to3 is out of date.  Instead of a dummy
Options object a dict should be used, and it seems the 'fixers' must
explicitly be loaded.  I'm afraid I don't have a specific patch as I
don't have a good test case, but the lib2to3 code needs to look
something like:

from lib2to3.refactor import RefactoringTool, get_fixers_from_package
fixers = get_fixers_from_package('lib2to3.fixes')
options = dict(doctests_only=False, fix=[], list_fixes=[], 
               print_function=False, verbose=False,
r = RefactoringTool(fixers, options)

components: Distutils
messages: 74506
nosy: loewis, mhammond
severity: normal
status: open
title: build_py support for lib2to3 is stale
versions: Python 3.0

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list