inline comments to disable (specific) transformations?

Issue #52 new
Anonymous created an issue

We use 3to2 to provide a python2 version of an internal library. We've run into a unicode problem with one of the conversions because of a line in httplib.py from python 2.7 (which is harder to get changed).

Would you be amenable to a pull request to add a feature that allows transformations to be disabled on a per-line basis with inline comments?

I was thinking of something drawing inspiration from tools like flake8 and rubocop:

str("foo") #  3to2:disable str

Comments (2)

  1. Joe Amenta repo owner

    I would be perfectly happy looking at and merging a pull request. I don't have the time (or, frankly, the expertise... anymore) to be able to do something like that myself.

  2. Log in to comment