Thomas Kluyver
Thomas Kluyver
modernize generally doesn't go in for a lot of options - what you can do is mostly enable and disable specific fixers. You could always disable this one and run...
Playing with it a bit, it appears to only work if the lambda only has one argument. However, the code for this is in lib2to3, so it's not easy for...
Yep, this is tracked in the Python bug tracker: http://bugs.python.org/issue16094
If it's important, we can copy and modify the fixer from 2to3: http://hg.python.org/cpython/file/4d4a9094bdb0/Lib/lib2to3/fixes/fix_tuple_params.py That code looks pretty involved, though.
Looks like the bug is actually in `lib2to3.fixer_utils.touch_import`.
Nice project :-). We've kind of split 2to3 into two tools - modernize when you want to add Python 3 support, and `pyupgrade` with the `--py3-plus` flag (from looking at...
I'm guessing you're using the short names. You need to use the full names as returned by `python-modernize -l`. E.g. `libmodernize.fixes.fix_map`. It would be a nice addition for it to...
Nice, I like this idea
I added machinery for testing line endings in #130 (actually, it's a modification of @daira's machinery in #129). We can reuse that for this, although the actual tests will need...
Yep, I think it's OK to simplify it and assume it's run by a moderately recent Python version.