On Thu, Aug 15, 2024 at 01:11:23PM +0200, Jerome BENOIT wrote: > > > is there a reliable way to isolate Python2 idiosyncrasies in Python3 > > > scripts ? > > > > Do you mean code that still works in Python 3 but can be simplified? > > Lots of linters do this in whole or in part, though I don't have > > suggestions for something that does *only* this. You can also look at > > pyupgrade. > > > > > I look to check if a bunch of Python[2] scripts can run with Python3 as-is or > with minor changes. > The involve scripts are very basic.
Try modernize or any linter. -- WBR, wRAR
signature.asc
Description: PGP signature