The Wanderer wrote: > In my case, I started with the last Debian package version before the > removal, imported the source package into git, dropped the debian/ > directory because that doesn't belong in the upstream codebase, ran the > '2to3' tool (from the package of the same name) against the codebase, > committed the result, and started doing "build" / run tests of the > updated code (including comparisons back and forth with the untouched > Python 2 version of the codebase).
FWIW, here are my notes from converting a couple small private scripts: * Note that 2to3 does not change the shebang line. And the actual command in Debian10 [and 11] is 2to3-2.7. * Run pylint before running 2to3, and address non-cosmetic issues. Then run pylint3 after the conversion. mike