There's been loose talk of adding "minus2" fixers to 2to3, but I don't know
whether there's been any concrete progress.

At least most refactorings will be taking place on a code base that already
runs on Python 3, so tests (where they exist) can ensure that such
automated refactorings would do relatively little damage.

Kind regards,
Steve Holden


On Tue, Dec 3, 2019 at 9:23 PM Richard Barran <rich...@arbee-design.co.uk>
wrote:

> Hi all,
>
> With the end-of-life of Python 2 upon us, I wondered about cleaning up
> code that has (had!) to support both Python 2 and Python 3. Some of it is
> easy (e.g. look for any references to the ‘six’ library), some of it is
> relatively easy (e.g. super(Foobar, self) ) and… actually, there could be
> quite a few things to tidy up.
>
> I’m wondering if there is a script out there to quickly introspect a
> codebase and flag up any legacy code? I’ve tried googling but drew up a
> blank. Any suggestions welcome!
>
> Richard
> _______________________________________________
> python-uk mailing list
> python-uk@python.org
> https://mail.python.org/mailman/listinfo/python-uk
>
_______________________________________________
python-uk mailing list
python-uk@python.org
https://mail.python.org/mailman/listinfo/python-uk

Reply via email to