Message74506
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,
write=True)
r = RefactoringTool(fixers, options)
r.refactor(self.updated_files) |
|
Date |
User |
Action |
Args |
2008-10-08 00:49:57 | mhammond | set | recipients:
+ mhammond, loewis |
2008-10-08 00:49:57 | mhammond | set | messageid: <1223426997.83.0.795530448507.issue4072@psf.upfronthosting.co.za> |
2008-10-08 00:49:57 | mhammond | link | issue4072 messages |
2008-10-08 00:49:56 | mhammond | create | |
|