Re: [python-uk] Python 2.7 code: a spring-clean

2019-12-04 Thread Richard Barran
That might do the trick - I’ll try it out. Mucho thanks! > On 4 Dec 2019, at 10:51, Jonathan Lange wrote: > > We've had good luck using https://github.com/asottile/pyupgrade > as a pre-commit hook (see > https://pre-commit.com/

Re: [python-uk] Python 2.7 code: a spring-clean

2019-12-04 Thread Jonathan Lange
We've had good luck using https://github.com/asottile/pyupgrade as a pre-commit hook (see https://pre-commit.com/ – highly recommended). We were already using Python 3, but it's helped us deal with some of the 3.n -> 3.n+1 upgrades. On Tue, 3 Dec 2019 at 21:23, Richard Barran wrote: > Hi all, >