Victor Stinner <vstinner at redhat.com> writes: >> Is there already a static analysis tool that helps find these things? (Would a >> pylint check for the above be useful? Some of them would be hard to find >> reliably, but a bunch of the above would be trivial) > > I read that hacking has some checks. It's quite easy to run 2to3 to see modified lines. In Swift, Alex has installed this tox.ini target to detect those : https://github.com/openstack/swift/blob/master/tox.ini#L38 may be a good idea to generalize. Cheers, Chmouel